/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bomberos;

import conexion.ConexionSql;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;

/**
 *
 * @author ASUS
 */
public class reporteinstruccion extends javax.swing.JFrame {

   
DefaultTableModel tabla = new DefaultTableModel();
DefaultTableModel tabla1 = new DefaultTableModel();
DefaultTableModel tabla2 = new DefaultTableModel();
DefaultTableModel tabla3 = new DefaultTableModel();
DefaultTableModel tabla4 = new DefaultTableModel();
DefaultTableModel tabla5 = new DefaultTableModel();
  int radicado=0;
  int    ContadorPersonalAsistente;
  int    ContadorSinExcusa=0;
  int    ContadorConExcusa=0;
  int    ContadorConLicencia=0;
  int    ContadorEnfermos=0;
  int    ContadorSuspendidos=0;
  String dato; // dato personal Asistente que va a mysql para ser eleminado
  String dato2; // dato personal Asistente que va a mysql para ser eleminado
  String dato3; // dato personal Asistente que va a mysql para ser eleminado
  String dato4; // dato personal Asistente que va a mysql para ser eleminado
  String dato5; // dato personal Asistente que va a mysql para ser eleminado
  String dato6; // dato personal Asistente que va a mysql para ser eleminado
  boolean estado=false;
  boolean estado2=false;
  boolean estado3=false;
  boolean estado4=false;
  boolean estado5=false;
  boolean estado6=false;
    /**
     * Creates new form reporteinstruccion
     */
    public reporteinstruccion() {
        initComponents();
        
        String titulos[] = {"ID","FOLIO","NOMBRES", "APELLIDOS", "GRADO"};
        tabla.setColumnIdentifiers(titulos);
        this.jTable1.setModel(tabla);
        
        String titulos2[] = {"ID","FOLIO","NOMBRES", "APELLIDOS", "GRADO"};
        tabla1.setColumnIdentifiers(titulos2);
        this.jTable2.setModel(tabla1);
        
        String titulos3[] = {"ID","FOLIO","NOMBRES", "APELLIDOS", "GRADO"};
        tabla2.setColumnIdentifiers(titulos3);
        this.jTable3.setModel(tabla2);
        
        String titulos4[] = {"ID","FOLIO","NOMBRES", "APELLIDOS", "GRADO"};
        tabla3.setColumnIdentifiers(titulos4);
        this.jTable4.setModel(tabla3);
        
        String titulos5[] = {"ID","FOLIO","NOMBRES", "APELLIDOS", "GRADO"};
        tabla4.setColumnIdentifiers(titulos5);
        this.jTable5.setModel(tabla4);
        
        String titulos6[] = {"ID","FOLIO","NOMBRES", "APELLIDOS", "GRADO"};
        tabla5.setColumnIdentifiers(titulos6);
        this.jTable6.setModel(tabla5);
        
    } 

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        ClaseInstruccion = new javax.swing.ButtonGroup();
        ActivapanelUno = new javax.swing.ButtonGroup();
        ActivapanelDos = new javax.swing.ButtonGroup();
        ActivapanelTres = new javax.swing.ButtonGroup();
        ActivapanelCuatro = new javax.swing.ButtonGroup();
        ActivapanelCinco = new javax.swing.ButtonGroup();
        ActivapanelSeis = new javax.swing.ButtonGroup();
        jPanel1 = new javax.swing.JPanel();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel2 = new javax.swing.JPanel();
        jPanel13 = new javax.swing.JPanel();
        jPanel12 = new javax.swing.JPanel();
        jLabel3 = new javax.swing.JLabel();
        NombreInstructor = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        ApellidoInstructor = new javax.swing.JTextField();
        jLabel8 = new javax.swing.JLabel();
        jComboGrado = new javax.swing.JComboBox();
        jLabel9 = new javax.swing.JLabel();
        jPanel11 = new javax.swing.JPanel();
        BomberilPactica = new javax.swing.JCheckBox();
        PrimerosAuxilios = new javax.swing.JCheckBox();
        BomberilTeorica = new javax.swing.JCheckBox();
        BomberilFisica = new javax.swing.JCheckBox();
        BomberilMilitar = new javax.swing.JCheckBox();
        Otros = new javax.swing.JCheckBox();
        jLabel7 = new javax.swing.JLabel();
        jPanel10 = new javax.swing.JPanel();
        jLabel4 = new javax.swing.JLabel();
        FechaElaboracion = new datechooser.beans.DateChooserCombo();
        jLabel5 = new javax.swing.JLabel();
        hora = new javax.swing.JTextField();
        jLabel6 = new javax.swing.JLabel();
        minutos = new javax.swing.JTextField();
        horario = new javax.swing.JComboBox();
        jLabel2 = new javax.swing.JLabel();
        FolioRadicado = new javax.swing.JTextField();
        jLabel10 = new javax.swing.JLabel();
        jPanel9 = new javax.swing.JPanel();
        jCheckBox7 = new javax.swing.JCheckBox();
        jCheckBox8 = new javax.swing.JCheckBox();
        jCheckBox9 = new javax.swing.JCheckBox();
        jCheckBox10 = new javax.swing.JCheckBox();
        textMaquina = new javax.swing.JTextField();
        txtGalones = new javax.swing.JTextField();
        textEscalera = new javax.swing.JTextField();
        textManila = new javax.swing.JTextField();
        jCheckBox11 = new javax.swing.JCheckBox();
        textTramos = new javax.swing.JTextField();
        jCheckBox12 = new javax.swing.JCheckBox();
        textOtro = new javax.swing.JTextField();
        jButton13 = new javax.swing.JButton();
        jLabel29 = new javax.swing.JLabel();
        jScrollPane7 = new javax.swing.JScrollPane();
        observa = new javax.swing.JTextArea();
        jButton14 = new javax.swing.JButton();
        jLabel30 = new javax.swing.JLabel();
        jPanel3 = new javax.swing.JPanel();
        jPanel14 = new javax.swing.JPanel();
        jLabel11 = new javax.swing.JLabel();
        jTextField6 = new javax.swing.JTextField();
        jLabel12 = new javax.swing.JLabel();
        jTextField7 = new javax.swing.JTextField();
        jLabel13 = new javax.swing.JLabel();
        jComboRango1 = new javax.swing.JComboBox();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jLabel36 = new javax.swing.JLabel();
        jTextField24 = new javax.swing.JTextField();
        jPanel20 = new javax.swing.JPanel();
        jCheckBox1 = new javax.swing.JCheckBox();
        jCheckBox2 = new javax.swing.JCheckBox();
        jLabel31 = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();
        jPanel4 = new javax.swing.JPanel();
        jPanel15 = new javax.swing.JPanel();
        jLabel14 = new javax.swing.JLabel();
        jTextField8 = new javax.swing.JTextField();
        jLabel15 = new javax.swing.JLabel();
        jTextField9 = new javax.swing.JTextField();
        jLabel16 = new javax.swing.JLabel();
        jComboRango2 = new javax.swing.JComboBox();
        jButton3 = new javax.swing.JButton();
        jButton4 = new javax.swing.JButton();
        jLabel37 = new javax.swing.JLabel();
        jTextField25 = new javax.swing.JTextField();
        jPanel21 = new javax.swing.JPanel();
        jCheckBox5 = new javax.swing.JCheckBox();
        jCheckBox6 = new javax.swing.JCheckBox();
        jLabel33 = new javax.swing.JLabel();
        jScrollPane2 = new javax.swing.JScrollPane();
        jTable2 = new javax.swing.JTable();
        jPanel5 = new javax.swing.JPanel();
        jPanel16 = new javax.swing.JPanel();
        jLabel17 = new javax.swing.JLabel();
        jTextField10 = new javax.swing.JTextField();
        jLabel18 = new javax.swing.JLabel();
        jTextField11 = new javax.swing.JTextField();
        jLabel19 = new javax.swing.JLabel();
        jComboRango3 = new javax.swing.JComboBox();
        jButton5 = new javax.swing.JButton();
        jButton6 = new javax.swing.JButton();
        jLabel38 = new javax.swing.JLabel();
        jTextField26 = new javax.swing.JTextField();
        jPanel22 = new javax.swing.JPanel();
        jCheckBox13 = new javax.swing.JCheckBox();
        jCheckBox14 = new javax.swing.JCheckBox();
        jLabel34 = new javax.swing.JLabel();
        jScrollPane3 = new javax.swing.JScrollPane();
        jTable3 = new javax.swing.JTable();
        jPanel6 = new javax.swing.JPanel();
        jPanel17 = new javax.swing.JPanel();
        jLabel20 = new javax.swing.JLabel();
        jTextField12 = new javax.swing.JTextField();
        jLabel21 = new javax.swing.JLabel();
        jTextField13 = new javax.swing.JTextField();
        jLabel22 = new javax.swing.JLabel();
        jComboRango4 = new javax.swing.JComboBox();
        jButton7 = new javax.swing.JButton();
        jButton8 = new javax.swing.JButton();
        jLabel39 = new javax.swing.JLabel();
        jTextField27 = new javax.swing.JTextField();
        jPanel23 = new javax.swing.JPanel();
        jCheckBox15 = new javax.swing.JCheckBox();
        jCheckBox16 = new javax.swing.JCheckBox();
        jLabel35 = new javax.swing.JLabel();
        jScrollPane4 = new javax.swing.JScrollPane();
        jTable4 = new javax.swing.JTable();
        jPanel7 = new javax.swing.JPanel();
        jPanel18 = new javax.swing.JPanel();
        jLabel23 = new javax.swing.JLabel();
        jTextField14 = new javax.swing.JTextField();
        jLabel24 = new javax.swing.JLabel();
        jTextField15 = new javax.swing.JTextField();
        jLabel25 = new javax.swing.JLabel();
        jComboRango5 = new javax.swing.JComboBox();
        jButton9 = new javax.swing.JButton();
        jButton10 = new javax.swing.JButton();
        jLabel40 = new javax.swing.JLabel();
        jTextField28 = new javax.swing.JTextField();
        jPanel24 = new javax.swing.JPanel();
        jCheckBox17 = new javax.swing.JCheckBox();
        jCheckBox18 = new javax.swing.JCheckBox();
        jLabel42 = new javax.swing.JLabel();
        jScrollPane5 = new javax.swing.JScrollPane();
        jTable5 = new javax.swing.JTable();
        jPanel8 = new javax.swing.JPanel();
        jPanel19 = new javax.swing.JPanel();
        jLabel26 = new javax.swing.JLabel();
        jTextField16 = new javax.swing.JTextField();
        jLabel27 = new javax.swing.JLabel();
        jTextField17 = new javax.swing.JTextField();
        jLabel28 = new javax.swing.JLabel();
        jComboRango6 = new javax.swing.JComboBox();
        jButton11 = new javax.swing.JButton();
        jButton12 = new javax.swing.JButton();
        jLabel41 = new javax.swing.JLabel();
        jTextField29 = new javax.swing.JTextField();
        jPanel25 = new javax.swing.JPanel();
        jCheckBox19 = new javax.swing.JCheckBox();
        jCheckBox20 = new javax.swing.JCheckBox();
        jLabel43 = new javax.swing.JLabel();
        jScrollPane6 = new javax.swing.JScrollPane();
        jTable6 = new javax.swing.JTable();

        jPanel2.setMaximumSize(new java.awt.Dimension(288, 288));
        jPanel2.setPreferredSize(new java.awt.Dimension(668, 605));

        jPanel12.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLabel3.setText("Nombre Instructor");

        jLabel1.setText("Apellido Instructor");

        jLabel8.setText("Grado");

        jComboGrado.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "....................", "Bombero raso", "Distiguido", "Cabo segundo", "Cabo primero", "Sargento segundo", "Sargento primero", "Sargento ayudante", "Oficiales", "Sub-teniente", "Teniente", "Capitan", "Mayor", "Teniente coronel", "Coronel", "Coronel encargado" }));

        javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
        jPanel12.setLayout(jPanel12Layout);
        jPanel12Layout.setHorizontalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addComponent(jLabel3)
                .addGap(18, 18, 18)
                .addComponent(NombreInstructor, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel1)
                .addGap(18, 18, 18)
                .addComponent(ApellidoInstructor, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jLabel8)
                .addGap(18, 18, 18)
                .addComponent(jComboGrado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        jPanel12Layout.setVerticalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addGap(12, 12, 12)
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel3)
                    .addComponent(NombreInstructor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel1)
                    .addComponent(ApellidoInstructor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel8)
                    .addComponent(jComboGrado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jLabel9.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel9.setText("INSTRUCTOR");

        jPanel11.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        ClaseInstruccion.add(BomberilPactica);
        BomberilPactica.setText("Bomberil Práctica");

        ClaseInstruccion.add(PrimerosAuxilios);
        PrimerosAuxilios.setText("Primeros Auxilios");

        ClaseInstruccion.add(BomberilTeorica);
        BomberilTeorica.setText("Bomberil Teórica");

        ClaseInstruccion.add(BomberilFisica);
        BomberilFisica.setText("Educación Fisica");

        ClaseInstruccion.add(BomberilMilitar);
        BomberilMilitar.setText("Militar");

        ClaseInstruccion.add(Otros);
        Otros.setText("Otros");

        javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
        jPanel11.setLayout(jPanel11Layout);
        jPanel11Layout.setHorizontalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addGap(129, 129, 129)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(PrimerosAuxilios)
                    .addComponent(BomberilPactica))
                .addGap(74, 74, 74)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(BomberilTeorica)
                    .addComponent(BomberilFisica))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(Otros)
                    .addComponent(BomberilMilitar))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel11Layout.setVerticalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addGap(15, 15, 15)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(BomberilPactica)
                    .addComponent(BomberilTeorica)
                    .addComponent(BomberilMilitar))
                .addGap(18, 18, 18)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(PrimerosAuxilios)
                    .addComponent(BomberilFisica)
                    .addComponent(Otros))
                .addContainerGap(21, Short.MAX_VALUE))
        );

        jLabel7.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel7.setText("CLASE DE INSTRUCCIÓN");

        jPanel10.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLabel4.setText("Fecha eleboración");

        FechaElaboracion.setCurrentView(new datechooser.view.appearance.AppearancesList("Light",
            new datechooser.view.appearance.ViewAppearance("custom",
                new datechooser.view.appearance.swing.SwingCellAppearance(new java.awt.Font("Tahoma", java.awt.Font.PLAIN, 11),
                    new java.awt.Color(0, 0, 0),
                    new java.awt.Color(0, 0, 255),
                    false,
                    true,
                    new datechooser.view.appearance.swing.ButtonPainter()),
                new datechooser.view.appearance.swing.SwingCellAppearance(new java.awt.Font("Tahoma", java.awt.Font.PLAIN, 11),
                    new java.awt.Color(0, 0, 0),
                    new java.awt.Color(0, 0, 255),
                    true,
                    true,
                    new datechooser.view.appearance.swing.ButtonPainter()),
                new datechooser.view.appearance.swing.SwingCellAppearance(new java.awt.Font("Tahoma", java.awt.Font.PLAIN, 11),
                    new java.awt.Color(0, 0, 255),
                    new java.awt.Color(0, 0, 255),
                    false,
                    true,
                    new datechooser.view.appearance.swing.ButtonPainter()),
                new datechooser.view.appearance.swing.SwingCellAppearance(new java.awt.Font("Tahoma", java.awt.Font.PLAIN, 11),
                    new java.awt.Color(128, 128, 128),
                    new java.awt.Color(0, 0, 255),
                    false,
                    true,
                    new datechooser.view.appearance.swing.LabelPainter()),
                new datechooser.view.appearance.swing.SwingCellAppearance(new java.awt.Font("Tahoma", java.awt.Font.PLAIN, 11),
                    new java.awt.Color(0, 0, 0),
                    new java.awt.Color(0, 0, 255),
                    false,
                    true,
                    new datechooser.view.appearance.swing.LabelPainter()),
                new datechooser.view.appearance.swing.SwingCellAppearance(new java.awt.Font("Tahoma", java.awt.Font.PLAIN, 11),
                    new java.awt.Color(0, 0, 0),
                    new java.awt.Color(255, 0, 0),
                    false,
                    false,
                    new datechooser.view.appearance.swing.ButtonPainter()),
                (datechooser.view.BackRenderer)null,
                false,
                true)));

    jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel5.setText("Hora");

    jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel6.setText(":");

    horario.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "....", "AM", "PM" }));

    jLabel2.setText("Radicado Folio No.");

    javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
    jPanel10.setLayout(jPanel10Layout);
    jPanel10Layout.setHorizontalGroup(
        jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel10Layout.createSequentialGroup()
            .addGap(20, 20, 20)
            .addComponent(jLabel2)
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
            .addComponent(FolioRadicado, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addGap(31, 31, 31)
            .addComponent(jLabel4)
            .addGap(13, 13, 13)
            .addComponent(FechaElaboracion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
            .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
            .addComponent(hora, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
            .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
            .addComponent(minutos, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addGap(18, 18, 18)
            .addComponent(horario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
    );
    jPanel10Layout.setVerticalGroup(
        jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel10Layout.createSequentialGroup()
            .addContainerGap()
            .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                .addGroup(jPanel10Layout.createSequentialGroup()
                    .addGap(3, 3, 3)
                    .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(hora, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel6)
                        .addComponent(minutos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(horario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addComponent(FechaElaboracion, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .addComponent(FolioRadicado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
    );

    jLabel10.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
    jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel10.setText("MATERIAL UTILIZADO");

    jPanel9.setBorder(javax.swing.BorderFactory.createEtchedBorder());

    jCheckBox7.setText("Maquina No.");
    jCheckBox7.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            jCheckBox7MouseClicked(evt);
        }
    });

    jCheckBox8.setText("Galones de agua");
    jCheckBox8.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            jCheckBox8MouseClicked(evt);
        }
    });

    jCheckBox9.setText("Escalera");
    jCheckBox9.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            jCheckBox9MouseClicked(evt);
        }
    });

    jCheckBox10.setText("Manila");
    jCheckBox10.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            jCheckBox10MouseClicked(evt);
        }
    });

    textMaquina.setText("0");
    textMaquina.setEnabled(false);

    txtGalones.setText("0");
    txtGalones.setEnabled(false);

    textEscalera.setText("0");
    textEscalera.setEnabled(false);

    textManila.setText("0");
    textManila.setEnabled(false);

    jCheckBox11.setText("Tramos de mangera");
    jCheckBox11.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            jCheckBox11MouseClicked(evt);
        }
    });

    textTramos.setText("0");
    textTramos.setEnabled(false);

    jCheckBox12.setText("Otro");
    jCheckBox12.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            jCheckBox12MouseClicked(evt);
        }
    });

    textOtro.setText("0");
    textOtro.setEnabled(false);

    javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
    jPanel9.setLayout(jPanel9Layout);
    jPanel9Layout.setHorizontalGroup(
        jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel9Layout.createSequentialGroup()
            .addContainerGap()
            .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jCheckBox7)
                .addComponent(textMaquina, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGap(18, 18, 18)
            .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                .addComponent(jCheckBox8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(txtGalones))
            .addGap(26, 26, 26)
            .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                .addComponent(textEscalera)
                .addComponent(jCheckBox9, javax.swing.GroupLayout.DEFAULT_SIZE, 81, Short.MAX_VALUE))
            .addGap(36, 36, 36)
            .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                .addComponent(textManila)
                .addComponent(jCheckBox10, javax.swing.GroupLayout.DEFAULT_SIZE, 87, Short.MAX_VALUE))
            .addGap(18, 18, 18)
            .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                .addComponent(jCheckBox11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(textTramos))
            .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel9Layout.createSequentialGroup()
                    .addGap(18, 18, 18)
                    .addComponent(textOtro))
                .addGroup(jPanel9Layout.createSequentialGroup()
                    .addGap(18, 18, 18)
                    .addComponent(jCheckBox12)
                    .addGap(0, 0, Short.MAX_VALUE)))
            .addContainerGap())
    );
    jPanel9Layout.setVerticalGroup(
        jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel9Layout.createSequentialGroup()
            .addGap(18, 18, 18)
            .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(jCheckBox7)
                .addComponent(jCheckBox8)
                .addComponent(jCheckBox9)
                .addComponent(jCheckBox10)
                .addComponent(jCheckBox11)
                .addComponent(jCheckBox12))
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
            .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(textMaquina, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addComponent(txtGalones, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addComponent(textEscalera, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addComponent(textManila, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addComponent(textTramos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addComponent(textOtro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
    );

    jButton13.setText("Guardar Datos");
    jButton13.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            jButton13MouseClicked(evt);
        }
    });
    jButton13.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton13ActionPerformed(evt);
        }
    });

    jLabel29.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
    jLabel29.setText("Observaciones");

    observa.setColumns(20);
    observa.setRows(5);
    jScrollPane7.setViewportView(observa);

    jButton14.setText("Limpiar");
    jButton14.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            jButton14MouseClicked(evt);
        }
    });

    jLabel30.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
    jLabel30.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel30.setText("REPORTE DE INSTRUCCCIÓN");

    javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);
    jPanel13.setLayout(jPanel13Layout);
    jPanel13Layout.setHorizontalGroup(
        jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addComponent(jPanel12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        .addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        .addGroup(jPanel13Layout.createSequentialGroup()
            .addGap(41, 41, 41)
            .addComponent(jLabel29)
            .addGap(18, 18, 18)
            .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 324, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addGap(18, 18, 18)
            .addComponent(jButton13)
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
            .addComponent(jButton14)
            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        .addGroup(jPanel13Layout.createSequentialGroup()
            .addContainerGap()
            .addComponent(jLabel30, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        .addComponent(jLabel7, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
    );
    jPanel13Layout.setVerticalGroup(
        jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel13Layout.createSequentialGroup()
            .addContainerGap()
            .addComponent(jLabel30)
            .addGap(13, 13, 13)
            .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addGap(13, 13, 13)
            .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
            .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
            .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
            .addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
            .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
            .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel13Layout.createSequentialGroup()
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanel13Layout.createSequentialGroup()
                    .addGap(59, 59, 59)
                    .addComponent(jLabel29))
                .addGroup(jPanel13Layout.createSequentialGroup()
                    .addGap(60, 60, 60)
                    .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton13)
                        .addComponent(jButton14))))
            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
    );

    javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout.setHorizontalGroup(
        jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel2Layout.createSequentialGroup()
            .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addGap(0, 43, Short.MAX_VALUE))
    );
    jPanel2Layout.setVerticalGroup(
        jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel2Layout.createSequentialGroup()
            .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addContainerGap())
    );

    jTabbedPane1.addTab("DATOS PRINCIPALES", jPanel2);

    jPanel14.setBorder(javax.swing.BorderFactory.createEtchedBorder());

    jLabel11.setText("Nombres");

    jTextField6.setEnabled(false);

    jLabel12.setText("Apellidos");

    jTextField7.setEnabled(false);
    jTextField7.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jTextField7ActionPerformed(evt);
        }
    });

    jLabel13.setText("Grado");

    jComboRango1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "....................", "Bombero raso", "Distiguido", "Cabo segundo", "Cabo primero", "Sargento segundo", "Sargento primero", "Sargento ayudante", "Oficiales", "Sub-teniente", "Teniente", "Capitan", "Mayor", "Teniente coronel", "Coronel", "Coronel encargado" }));
    jComboRango1.setEnabled(false);

    jButton1.setText("Agregar");
    jButton1.setEnabled(false);
    jButton1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton1ActionPerformed(evt);
        }
    });

    jButton2.setText("Eliminar");
    jButton2.setEnabled(false);
    jButton2.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton2ActionPerformed(evt);
        }
    });

    jLabel36.setText("Contador de campos");

    jTextField24.setEditable(false);
    jTextField24.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jTextField24ActionPerformed(evt);
        }
    });

    jPanel20.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

    ActivapanelUno.add(jCheckBox1);
    jCheckBox1.setText("Si");
    jCheckBox1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jCheckBox1ActionPerformed(evt);
        }
    });

    ActivapanelUno.add(jCheckBox2);
    jCheckBox2.setText("No");
    jCheckBox2.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jCheckBox2ActionPerformed(evt);
        }
    });

    jLabel31.setText("¿Quiere agregar Personal Asistente?");

    javax.swing.GroupLayout jPanel20Layout = new javax.swing.GroupLayout(jPanel20);
    jPanel20.setLayout(jPanel20Layout);
    jPanel20Layout.setHorizontalGroup(
        jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel20Layout.createSequentialGroup()
            .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel20Layout.createSequentialGroup()
                    .addGap(49, 49, 49)
                    .addComponent(jCheckBox1)
                    .addGap(18, 18, 18)
                    .addComponent(jCheckBox2))
                .addGroup(jPanel20Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel31)))
            .addContainerGap())
    );
    jPanel20Layout.setVerticalGroup(
        jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel20Layout.createSequentialGroup()
            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(jLabel31)
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
            .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jCheckBox2)
                .addComponent(jCheckBox1))
            .addContainerGap())
    );

    javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);
    jPanel14.setLayout(jPanel14Layout);
    jPanel14Layout.setHorizontalGroup(
        jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel14Layout.createSequentialGroup()
            .addGap(53, 53, 53)
            .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel14Layout.createSequentialGroup()
                    .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel14Layout.createSequentialGroup()
                            .addComponent(jLabel36)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jTextField24, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(jPanel14Layout.createSequentialGroup()
                            .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(18, 18, 18)
                            .addComponent(jComboRango1, javax.swing.GroupLayout.PREFERRED_SIZE, 185, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(50, 50, 50)
                            .addComponent(jButton1)
                            .addGap(18, 18, 18)
                            .addComponent(jButton2)))
                    .addGap(0, 228, Short.MAX_VALUE))
                .addGroup(jPanel14Layout.createSequentialGroup()
                    .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addGroup(jPanel14Layout.createSequentialGroup()
                            .addComponent(jLabel12)
                            .addGap(18, 18, 18)
                            .addComponent(jTextField7))
                        .addGroup(jPanel14Layout.createSequentialGroup()
                            .addComponent(jLabel11)
                            .addGap(18, 18, 18)
                            .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, 268, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel20, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
            .addContainerGap())
    );
    jPanel14Layout.setVerticalGroup(
        jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel14Layout.createSequentialGroup()
            .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel14Layout.createSequentialGroup()
                    .addGap(21, 21, 21)
                    .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel11)
                        .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18)
                    .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel12)
                        .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGroup(jPanel14Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jPanel20, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)))
            .addGap(22, 22, 22)
            .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(jLabel13)
                .addComponent(jComboRango1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addComponent(jButton1)
                .addComponent(jButton2))
            .addGap(18, 18, 18)
            .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(jTextField24, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addComponent(jLabel36))
            .addContainerGap(13, Short.MAX_VALUE))
    );

    jTable1.setModel(new javax.swing.table.DefaultTableModel(
        new Object [][] {
            {null, null, null, null},
            {null, null, null, null},
            {null, null, null, null},
            {null, null, null, null}
        },
        new String [] {
            "Title 1", "Title 2", "Title 3", "Title 4"
        }
    ));
    jScrollPane1.setViewportView(jTable1);

    javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
    jPanel3.setLayout(jPanel3Layout);
    jPanel3Layout.setHorizontalGroup(
        jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel3Layout.createSequentialGroup()
            .addContainerGap()
            .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jPanel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jScrollPane1))
            .addContainerGap())
    );
    jPanel3Layout.setVerticalGroup(
        jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel3Layout.createSequentialGroup()
            .addContainerGap()
            .addComponent(jPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 401, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addContainerGap())
    );

    jTabbedPane1.addTab("PERSONAL ASISTENTE", jPanel3);

    jPanel15.setBorder(javax.swing.BorderFactory.createEtchedBorder());

    jLabel14.setText("Nombres");

    jTextField8.setEnabled(false);

    jLabel15.setText("Apellidos");

    jTextField9.setEnabled(false);

    jLabel16.setText("Grado");

    jComboRango2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "....................", "Bombero raso", "Distiguido", "Cabo segundo", "Cabo primero", "Sargento segundo", "Sargento primero", "Sargento ayudante", "Oficiales", "Sub-teniente", "Teniente", "Capitan", "Mayor", "Teniente coronel", "Coronel", "Coronel encargado" }));
    jComboRango2.setEnabled(false);

    jButton3.setText("Agregar");
    jButton3.setEnabled(false);
    jButton3.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton3ActionPerformed(evt);
        }
    });

    jButton4.setText("Eliminar");
    jButton4.setEnabled(false);
    jButton4.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton4ActionPerformed(evt);
        }
    });

    jLabel37.setText("Contador de campos");

    jTextField25.setEditable(false);
    jTextField25.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jTextField25ActionPerformed(evt);
        }
    });

    jPanel21.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

    ActivapanelDos.add(jCheckBox5);
    jCheckBox5.setText("Si");
    jCheckBox5.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jCheckBox5ActionPerformed(evt);
        }
    });

    ActivapanelDos.add(jCheckBox6);
    jCheckBox6.setSelected(true);
    jCheckBox6.setText("No");
    jCheckBox6.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jCheckBox6ActionPerformed(evt);
        }
    });

    jLabel33.setText("¿Quiere agregar Personal Asistente?");

    javax.swing.GroupLayout jPanel21Layout = new javax.swing.GroupLayout(jPanel21);
    jPanel21.setLayout(jPanel21Layout);
    jPanel21Layout.setHorizontalGroup(
        jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel21Layout.createSequentialGroup()
            .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel21Layout.createSequentialGroup()
                    .addGap(49, 49, 49)
                    .addComponent(jCheckBox5)
                    .addGap(18, 18, 18)
                    .addComponent(jCheckBox6))
                .addGroup(jPanel21Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel33)))
            .addContainerGap())
    );
    jPanel21Layout.setVerticalGroup(
        jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel21Layout.createSequentialGroup()
            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(jLabel33)
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
            .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jCheckBox6)
                .addComponent(jCheckBox5))
            .addContainerGap())
    );

    javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);
    jPanel15.setLayout(jPanel15Layout);
    jPanel15Layout.setHorizontalGroup(
        jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel15Layout.createSequentialGroup()
            .addGap(53, 53, 53)
            .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel15Layout.createSequentialGroup()
                    .addComponent(jLabel37)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jTextField25, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanel15Layout.createSequentialGroup()
                    .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18)
                    .addComponent(jComboRango2, javax.swing.GroupLayout.PREFERRED_SIZE, 185, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(50, 50, 50)
                    .addComponent(jButton3)
                    .addGap(18, 18, 18)
                    .addComponent(jButton4))
                .addGroup(jPanel15Layout.createSequentialGroup()
                    .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addGroup(jPanel15Layout.createSequentialGroup()
                            .addComponent(jLabel15)
                            .addGap(18, 18, 18)
                            .addComponent(jTextField9))
                        .addGroup(jPanel15Layout.createSequentialGroup()
                            .addComponent(jLabel14)
                            .addGap(18, 18, 18)
                            .addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, 268, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 152, Short.MAX_VALUE)
                    .addComponent(jPanel21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
            .addContainerGap())
    );
    jPanel15Layout.setVerticalGroup(
        jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel15Layout.createSequentialGroup()
            .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel15Layout.createSequentialGroup()
                    .addGap(21, 21, 21)
                    .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel14)
                        .addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18)
                    .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel15)
                        .addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGroup(jPanel15Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jPanel21, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)))
            .addGap(22, 22, 22)
            .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(jLabel16)
                .addComponent(jComboRango2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addComponent(jButton3)
                .addComponent(jButton4))
            .addGap(18, 18, 18)
            .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(jTextField25, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addComponent(jLabel37))
            .addContainerGap(13, Short.MAX_VALUE))
    );

    jTable2.setModel(new javax.swing.table.DefaultTableModel(
        new Object [][] {
            {null, null, null, null},
            {null, null, null, null},
            {null, null, null, null},
            {null, null, null, null}
        },
        new String [] {
            "Title 1", "Title 2", "Title 3", "Title 4"
        }
    ));
    jScrollPane2.setViewportView(jTable2);

    javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
    jPanel4.setLayout(jPanel4Layout);
    jPanel4Layout.setHorizontalGroup(
        jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel4Layout.createSequentialGroup()
            .addContainerGap()
            .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jPanel15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jScrollPane2))
            .addContainerGap())
    );
    jPanel4Layout.setVerticalGroup(
        jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel4Layout.createSequentialGroup()
            .addContainerGap()
            .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
            .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 401, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addContainerGap())
    );

    jTabbedPane1.addTab("SIN EXCUSA", jPanel4);

    jPanel16.setBorder(javax.swing.BorderFactory.createEtchedBorder());

    jLabel17.setText("Nombres");

    jTextField10.setEnabled(false);

    jLabel18.setText("Apellidos");

    jTextField11.setEnabled(false);
    jTextField11.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jTextField11ActionPerformed(evt);
        }
    });

    jLabel19.setText("Grado");

    jComboRango3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "....................", "Bombero raso", "Distiguido", "Cabo segundo", "Cabo primero", "Sargento segundo", "Sargento primero", "Sargento ayudante", "Oficiales", "Sub-teniente", "Teniente", "Capitan", "Mayor", "Teniente coronel", "Coronel", "Coronel encargado" }));
    jComboRango3.setEnabled(false);

    jButton5.setText("Agregar");
    jButton5.setEnabled(false);
    jButton5.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton5ActionPerformed(evt);
        }
    });

    jButton6.setText("Eliminar");
    jButton6.setEnabled(false);
    jButton6.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton6ActionPerformed(evt);
        }
    });

    jLabel38.setText("Contador de campos");

    jTextField26.setEditable(false);
    jTextField26.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jTextField26ActionPerformed(evt);
        }
    });

    jPanel22.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

    ActivapanelTres.add(jCheckBox13);
    jCheckBox13.setText("Si");
    jCheckBox13.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jCheckBox13ActionPerformed(evt);
        }
    });

    ActivapanelTres.add(jCheckBox14);
    jCheckBox14.setSelected(true);
    jCheckBox14.setText("No");
    jCheckBox14.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jCheckBox14ActionPerformed(evt);
        }
    });

    jLabel34.setText("¿Quiere agregar Personal Asistente?");

    javax.swing.GroupLayout jPanel22Layout = new javax.swing.GroupLayout(jPanel22);
    jPanel22.setLayout(jPanel22Layout);
    jPanel22Layout.setHorizontalGroup(
        jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel22Layout.createSequentialGroup()
            .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel22Layout.createSequentialGroup()
                    .addGap(49, 49, 49)
                    .addComponent(jCheckBox13)
                    .addGap(18, 18, 18)
                    .addComponent(jCheckBox14))
                .addGroup(jPanel22Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel34)))
            .addContainerGap())
    );
    jPanel22Layout.setVerticalGroup(
        jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel22Layout.createSequentialGroup()
            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(jLabel34)
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
            .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jCheckBox14)
                .addComponent(jCheckBox13))
            .addContainerGap())
    );

    javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);
    jPanel16.setLayout(jPanel16Layout);
    jPanel16Layout.setHorizontalGroup(
        jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel16Layout.createSequentialGroup()
            .addGap(53, 53, 53)
            .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel16Layout.createSequentialGroup()
                    .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel16Layout.createSequentialGroup()
                            .addComponent(jLabel38)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jTextField26, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(jPanel16Layout.createSequentialGroup()
                            .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(18, 18, 18)
                            .addComponent(jComboRango3, javax.swing.GroupLayout.PREFERRED_SIZE, 185, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(50, 50, 50)
                            .addComponent(jButton5)
                            .addGap(18, 18, 18)
                            .addComponent(jButton6)))
                    .addGap(0, 228, Short.MAX_VALUE))
                .addGroup(jPanel16Layout.createSequentialGroup()
                    .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addGroup(jPanel16Layout.createSequentialGroup()
                            .addComponent(jLabel18)
                            .addGap(18, 18, 18)
                            .addComponent(jTextField11))
                        .addGroup(jPanel16Layout.createSequentialGroup()
                            .addComponent(jLabel17)
                            .addGap(18, 18, 18)
                            .addComponent(jTextField10, javax.swing.GroupLayout.PREFERRED_SIZE, 268, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
            .addContainerGap())
    );
    jPanel16Layout.setVerticalGroup(
        jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel16Layout.createSequentialGroup()
            .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel16Layout.createSequentialGroup()
                    .addGap(21, 21, 21)
                    .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel17)
                        .addComponent(jTextField10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18)
                    .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel18)
                        .addComponent(jTextField11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGroup(jPanel16Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jPanel22, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)))
            .addGap(22, 22, 22)
            .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(jLabel19)
                .addComponent(jComboRango3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addComponent(jButton5)
                .addComponent(jButton6))
            .addGap(18, 18, 18)
            .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(jTextField26, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addComponent(jLabel38))
            .addContainerGap(13, Short.MAX_VALUE))
    );

    jTable3.setModel(new javax.swing.table.DefaultTableModel(
        new Object [][] {
            {null, null, null, null},
            {null, null, null, null},
            {null, null, null, null},
            {null, null, null, null}
        },
        new String [] {
            "Title 1", "Title 2", "Title 3", "Title 4"
        }
    ));
    jScrollPane3.setViewportView(jTable3);

    javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
    jPanel5.setLayout(jPanel5Layout);
    jPanel5Layout.setHorizontalGroup(
        jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel5Layout.createSequentialGroup()
            .addContainerGap()
            .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jPanel16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jScrollPane3))
            .addContainerGap())
    );
    jPanel5Layout.setVerticalGroup(
        jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel5Layout.createSequentialGroup()
            .addContainerGap()
            .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
            .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 401, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addContainerGap())
    );

    jTabbedPane1.addTab("CON EXCUSA", jPanel5);

    jPanel17.setBorder(javax.swing.BorderFactory.createEtchedBorder());

    jLabel20.setText("Nombres");

    jTextField12.setEnabled(false);

    jLabel21.setText("Apellidos");

    jTextField13.setEnabled(false);

    jLabel22.setText("Grado");

    jComboRango4.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "....................", "Bombero raso", "Distiguido", "Cabo segundo", "Cabo primero", "Sargento segundo", "Sargento primero", "Sargento ayudante", "Oficiales", "Sub-teniente", "Teniente", "Capitan", "Mayor", "Teniente coronel", "Coronel", "Coronel encargado" }));
    jComboRango4.setEnabled(false);

    jButton7.setText("Agregar");
    jButton7.setEnabled(false);
    jButton7.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton7ActionPerformed(evt);
        }
    });

    jButton8.setText("Eliminar");
    jButton8.setEnabled(false);
    jButton8.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton8ActionPerformed(evt);
        }
    });

    jLabel39.setText("Contador de campos");

    jTextField27.setEditable(false);
    jTextField27.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jTextField27ActionPerformed(evt);
        }
    });

    jPanel23.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

    ActivapanelCuatro.add(jCheckBox15);
    jCheckBox15.setText("Si");
    jCheckBox15.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jCheckBox15ActionPerformed(evt);
        }
    });

    ActivapanelCuatro.add(jCheckBox16);
    jCheckBox16.setSelected(true);
    jCheckBox16.setText("No");
    jCheckBox16.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jCheckBox16ActionPerformed(evt);
        }
    });

    jLabel35.setText("¿Quiere agregar Personal Asistente?");

    javax.swing.GroupLayout jPanel23Layout = new javax.swing.GroupLayout(jPanel23);
    jPanel23.setLayout(jPanel23Layout);
    jPanel23Layout.setHorizontalGroup(
        jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel23Layout.createSequentialGroup()
            .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel23Layout.createSequentialGroup()
                    .addGap(49, 49, 49)
                    .addComponent(jCheckBox15)
                    .addGap(18, 18, 18)
                    .addComponent(jCheckBox16))
                .addGroup(jPanel23Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel35)))
            .addContainerGap())
    );
    jPanel23Layout.setVerticalGroup(
        jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel23Layout.createSequentialGroup()
            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(jLabel35)
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
            .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jCheckBox16)
                .addComponent(jCheckBox15))
            .addContainerGap())
    );

    javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(jPanel17);
    jPanel17.setLayout(jPanel17Layout);
    jPanel17Layout.setHorizontalGroup(
        jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel17Layout.createSequentialGroup()
            .addGap(53, 53, 53)
            .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel17Layout.createSequentialGroup()
                    .addComponent(jLabel39)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jTextField27, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanel17Layout.createSequentialGroup()
                    .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addGroup(jPanel17Layout.createSequentialGroup()
                            .addComponent(jLabel21)
                            .addGap(18, 18, 18)
                            .addComponent(jTextField13))
                        .addGroup(jPanel17Layout.createSequentialGroup()
                            .addComponent(jLabel20)
                            .addGap(18, 18, 18)
                            .addComponent(jTextField12, javax.swing.GroupLayout.PREFERRED_SIZE, 268, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 152, Short.MAX_VALUE)
                    .addComponent(jPanel23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanel17Layout.createSequentialGroup()
                    .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18)
                    .addComponent(jComboRango4, javax.swing.GroupLayout.PREFERRED_SIZE, 185, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(50, 50, 50)
                    .addComponent(jButton7)
                    .addGap(18, 18, 18)
                    .addComponent(jButton8)))
            .addContainerGap())
    );
    jPanel17Layout.setVerticalGroup(
        jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel17Layout.createSequentialGroup()
            .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel17Layout.createSequentialGroup()
                    .addGap(21, 21, 21)
                    .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel20)
                        .addComponent(jTextField12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18)
                    .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel21)
                        .addComponent(jTextField13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGroup(jPanel17Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jPanel23, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)))
            .addGap(22, 22, 22)
            .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(jLabel22)
                .addComponent(jComboRango4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addComponent(jButton7)
                .addComponent(jButton8))
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 20, Short.MAX_VALUE)
            .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(jTextField27, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addComponent(jLabel39))
            .addContainerGap())
    );

    jTable4.setModel(new javax.swing.table.DefaultTableModel(
        new Object [][] {
            {null, null, null, null},
            {null, null, null, null},
            {null, null, null, null},
            {null, null, null, null}
        },
        new String [] {
            "Title 1", "Title 2", "Title 3", "Title 4"
        }
    ));
    jScrollPane4.setViewportView(jTable4);

    javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
    jPanel6.setLayout(jPanel6Layout);
    jPanel6Layout.setHorizontalGroup(
        jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel6Layout.createSequentialGroup()
            .addContainerGap()
            .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jPanel17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jScrollPane4))
            .addContainerGap())
    );
    jPanel6Layout.setVerticalGroup(
        jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel6Layout.createSequentialGroup()
            .addContainerGap()
            .addComponent(jPanel17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
            .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 401, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addContainerGap())
    );

    jTabbedPane1.addTab("CON LICENCIA", jPanel6);

    jPanel18.setBorder(javax.swing.BorderFactory.createEtchedBorder());

    jLabel23.setText("Nombres");

    jTextField14.setEnabled(false);

    jLabel24.setText("Apellidos");

    jTextField15.setEnabled(false);

    jLabel25.setText("Grado");

    jComboRango5.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "....................", "Bombero raso", "Distiguido", "Cabo segundo", "Cabo primero", "Sargento segundo", "Sargento primero", "Sargento ayudante", "Oficiales", "Sub-teniente", "Teniente", "Capitan", "Mayor", "Teniente coronel", "Coronel", "Coronel encargado" }));
    jComboRango5.setEnabled(false);

    jButton9.setText("Agregar");
    jButton9.setEnabled(false);
    jButton9.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton9ActionPerformed(evt);
        }
    });

    jButton10.setText("Eliminar");
    jButton10.setEnabled(false);
    jButton10.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton10ActionPerformed(evt);
        }
    });

    jLabel40.setText("Contador de campos");

    jTextField28.setEditable(false);
    jTextField28.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jTextField28ActionPerformed(evt);
        }
    });

    jPanel24.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

    ActivapanelCinco.add(jCheckBox17);
    jCheckBox17.setText("Si");
    jCheckBox17.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jCheckBox17ActionPerformed(evt);
        }
    });

    ActivapanelCinco.add(jCheckBox18);
    jCheckBox18.setSelected(true);
    jCheckBox18.setText("No");
    jCheckBox18.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jCheckBox18ActionPerformed(evt);
        }
    });

    jLabel42.setText("¿Quiere agregar Personal Asistente?");

    javax.swing.GroupLayout jPanel24Layout = new javax.swing.GroupLayout(jPanel24);
    jPanel24.setLayout(jPanel24Layout);
    jPanel24Layout.setHorizontalGroup(
        jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel24Layout.createSequentialGroup()
            .addGroup(jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel24Layout.createSequentialGroup()
                    .addGap(49, 49, 49)
                    .addComponent(jCheckBox17)
                    .addGap(18, 18, 18)
                    .addComponent(jCheckBox18))
                .addGroup(jPanel24Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel42)))
            .addContainerGap())
    );
    jPanel24Layout.setVerticalGroup(
        jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel24Layout.createSequentialGroup()
            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(jLabel42)
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
            .addGroup(jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jCheckBox18)
                .addComponent(jCheckBox17))
            .addContainerGap())
    );

    javax.swing.GroupLayout jPanel18Layout = new javax.swing.GroupLayout(jPanel18);
    jPanel18.setLayout(jPanel18Layout);
    jPanel18Layout.setHorizontalGroup(
        jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel18Layout.createSequentialGroup()
            .addGap(53, 53, 53)
            .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel18Layout.createSequentialGroup()
                    .addComponent(jLabel40)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jTextField28, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanel18Layout.createSequentialGroup()
                    .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addGroup(jPanel18Layout.createSequentialGroup()
                            .addComponent(jLabel24)
                            .addGap(18, 18, 18)
                            .addComponent(jTextField15))
                        .addGroup(jPanel18Layout.createSequentialGroup()
                            .addComponent(jLabel23)
                            .addGap(18, 18, 18)
                            .addComponent(jTextField14, javax.swing.GroupLayout.PREFERRED_SIZE, 268, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 152, Short.MAX_VALUE)
                    .addComponent(jPanel24, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanel18Layout.createSequentialGroup()
                    .addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18)
                    .addComponent(jComboRango5, javax.swing.GroupLayout.PREFERRED_SIZE, 185, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(50, 50, 50)
                    .addComponent(jButton9)
                    .addGap(18, 18, 18)
                    .addComponent(jButton10)))
            .addContainerGap())
    );
    jPanel18Layout.setVerticalGroup(
        jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel18Layout.createSequentialGroup()
            .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel18Layout.createSequentialGroup()
                    .addGap(21, 21, 21)
                    .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel23)
                        .addComponent(jTextField14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18)
                    .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel24)
                        .addComponent(jTextField15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGroup(jPanel18Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jPanel24, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)))
            .addGap(22, 22, 22)
            .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(jLabel25)
                .addComponent(jComboRango5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addComponent(jButton9)
                .addComponent(jButton10))
            .addGap(18, 18, 18)
            .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(jTextField28, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addComponent(jLabel40))
            .addContainerGap(13, Short.MAX_VALUE))
    );

    jTable5.setModel(new javax.swing.table.DefaultTableModel(
        new Object [][] {
            {null, null, null, null},
            {null, null, null, null},
            {null, null, null, null},
            {null, null, null, null}
        },
        new String [] {
            "Title 1", "Title 2", "Title 3", "Title 4"
        }
    ));
    jScrollPane5.setViewportView(jTable5);

    javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
    jPanel7.setLayout(jPanel7Layout);
    jPanel7Layout.setHorizontalGroup(
        jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel7Layout.createSequentialGroup()
            .addContainerGap()
            .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jPanel18, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jScrollPane5))
            .addContainerGap())
    );
    jPanel7Layout.setVerticalGroup(
        jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel7Layout.createSequentialGroup()
            .addContainerGap()
            .addComponent(jPanel18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
            .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 401, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addContainerGap())
    );

    jTabbedPane1.addTab("ENFERMOS", jPanel7);

    jPanel19.setBorder(javax.swing.BorderFactory.createEtchedBorder());

    jLabel26.setText("Nombres");

    jTextField16.setEnabled(false);

    jLabel27.setText("Apellidos");

    jTextField17.setEnabled(false);

    jLabel28.setText("Grado");

    jComboRango6.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "....................", "Bombero raso", "Distiguido", "Cabo segundo", "Cabo primero", "Sargento segundo", "Sargento primero", "Sargento ayudante", "Oficiales", "Sub-teniente", "Teniente", "Capitan", "Mayor", "Teniente coronel", "Coronel", "Coronel encargado" }));
    jComboRango6.setEnabled(false);

    jButton11.setText("Agregar");
    jButton11.setEnabled(false);
    jButton11.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton11ActionPerformed(evt);
        }
    });

    jButton12.setText("Eliminar");
    jButton12.setEnabled(false);
    jButton12.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton12ActionPerformed(evt);
        }
    });

    jLabel41.setText("Contador de campos");

    jTextField29.setEditable(false);
    jTextField29.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jTextField29ActionPerformed(evt);
        }
    });

    jPanel25.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

    ActivapanelSeis.add(jCheckBox19);
    jCheckBox19.setText("Si");
    jCheckBox19.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jCheckBox19ActionPerformed(evt);
        }
    });

    ActivapanelUno.add(jCheckBox20);
    jCheckBox20.setSelected(true);
    jCheckBox20.setText("No");
    jCheckBox20.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jCheckBox20ActionPerformed(evt);
        }
    });

    jLabel43.setText("¿Quiere agregar Personal Asistente?");

    javax.swing.GroupLayout jPanel25Layout = new javax.swing.GroupLayout(jPanel25);
    jPanel25.setLayout(jPanel25Layout);
    jPanel25Layout.setHorizontalGroup(
        jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel25Layout.createSequentialGroup()
            .addGroup(jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel25Layout.createSequentialGroup()
                    .addGap(49, 49, 49)
                    .addComponent(jCheckBox19)
                    .addGap(18, 18, 18)
                    .addComponent(jCheckBox20))
                .addGroup(jPanel25Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel43)))
            .addContainerGap())
    );
    jPanel25Layout.setVerticalGroup(
        jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel25Layout.createSequentialGroup()
            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(jLabel43)
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
            .addGroup(jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jCheckBox20)
                .addComponent(jCheckBox19))
            .addContainerGap())
    );

    javax.swing.GroupLayout jPanel19Layout = new javax.swing.GroupLayout(jPanel19);
    jPanel19.setLayout(jPanel19Layout);
    jPanel19Layout.setHorizontalGroup(
        jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel19Layout.createSequentialGroup()
            .addGap(53, 53, 53)
            .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel19Layout.createSequentialGroup()
                    .addComponent(jLabel41)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jTextField29, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanel19Layout.createSequentialGroup()
                    .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addGroup(jPanel19Layout.createSequentialGroup()
                            .addComponent(jLabel27)
                            .addGap(18, 18, 18)
                            .addComponent(jTextField17))
                        .addGroup(jPanel19Layout.createSequentialGroup()
                            .addComponent(jLabel26)
                            .addGap(18, 18, 18)
                            .addComponent(jTextField16, javax.swing.GroupLayout.PREFERRED_SIZE, 268, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 152, Short.MAX_VALUE)
                    .addComponent(jPanel25, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanel19Layout.createSequentialGroup()
                    .addComponent(jLabel28, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18)
                    .addComponent(jComboRango6, javax.swing.GroupLayout.PREFERRED_SIZE, 185, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(50, 50, 50)
                    .addComponent(jButton11)
                    .addGap(18, 18, 18)
                    .addComponent(jButton12)))
            .addContainerGap())
    );
    jPanel19Layout.setVerticalGroup(
        jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel19Layout.createSequentialGroup()
            .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel19Layout.createSequentialGroup()
                    .addGap(21, 21, 21)
                    .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel26)
                        .addComponent(jTextField16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18)
                    .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel27)
                        .addComponent(jTextField17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGroup(jPanel19Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jPanel25, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)))
            .addGap(22, 22, 22)
            .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(jLabel28)
                .addComponent(jComboRango6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addComponent(jButton11)
                .addComponent(jButton12))
            .addGap(18, 18, 18)
            .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(jTextField29, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addComponent(jLabel41))
            .addContainerGap(24, Short.MAX_VALUE))
    );

    jTable6.setModel(new javax.swing.table.DefaultTableModel(
        new Object [][] {
            {null, null, null, null},
            {null, null, null, null},
            {null, null, null, null},
            {null, null, null, null}
        },
        new String [] {
            "Title 1", "Title 2", "Title 3", "Title 4"
        }
    ));
    jScrollPane6.setViewportView(jTable6);

    javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
    jPanel8.setLayout(jPanel8Layout);
    jPanel8Layout.setHorizontalGroup(
        jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel8Layout.createSequentialGroup()
            .addContainerGap()
            .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jPanel19, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jScrollPane6))
            .addContainerGap())
    );
    jPanel8Layout.setVerticalGroup(
        jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel8Layout.createSequentialGroup()
            .addContainerGap()
            .addComponent(jPanel19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addGap(18, 18, 18)
            .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 401, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addContainerGap())
    );

    jTabbedPane1.addTab("SUSPENDIDOS", jPanel8);

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(
        jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addGroup(jPanel1Layout.createSequentialGroup()
            .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 773, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addGap(0, 0, Short.MAX_VALUE))
    );
    jPanel1Layout.setVerticalGroup(
        jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addComponent(jTabbedPane1)
    );

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
        layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
    );
    layout.setVerticalGroup(
        layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
    );

    pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jCheckBox7MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jCheckBox7MouseClicked
        if(jCheckBox7.isSelected()==true){
        textMaquina.setEnabled(true);
        textMaquina.setText("");
        }else{
        textMaquina.setEnabled(false);
        textMaquina.setText("0");
        }   
    }//GEN-LAST:event_jCheckBox7MouseClicked

    private void jCheckBox8MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jCheckBox8MouseClicked
       if(jCheckBox8.isSelected()==true){
       txtGalones.setEnabled(true);
       txtGalones.setText("");
       }else{
      txtGalones.setEnabled(false);
      txtGalones.setText("0");       
       }   
    }//GEN-LAST:event_jCheckBox8MouseClicked

    private void jCheckBox9MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jCheckBox9MouseClicked
      if(jCheckBox9.isSelected()==true){
      textEscalera.setEnabled(true);       
      textEscalera.setText("");
      }else{
      textEscalera.setEnabled(false);       
      textEscalera.setText("0");
      }
    }//GEN-LAST:event_jCheckBox9MouseClicked

    private void jCheckBox10MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jCheckBox10MouseClicked
      if(jCheckBox10.isSelected()==true){
      textManila.setEnabled(true);
      textManila.setText("");
      }else{
      textManila.setEnabled(false);
      textManila.setText("0");
      }  
    }//GEN-LAST:event_jCheckBox10MouseClicked

    private void jCheckBox11MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jCheckBox11MouseClicked
      if(jCheckBox11.isSelected()==true){
      textTramos.setEnabled(true);
      textTramos.setText("");
      }else{
      textTramos.setEnabled(false);
      textTramos.setText("0");
      }
    }//GEN-LAST:event_jCheckBox11MouseClicked

    private void jCheckBox12MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jCheckBox12MouseClicked
      if(jCheckBox12.isSelected()==true){
      textOtro.setEnabled(true);
      textOtro.setText("");
      }else{
      textOtro.setEnabled(false);
      textOtro.setText("0");
      }
      
    }//GEN-LAST:event_jCheckBox12MouseClicked

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        //variables    
        String patronTexto = "([a-zA-Z]+)";        
        int n;
        String insertar;
        String datos[] = new String[5];
        int datomysql = 0;
        // Finaliza Variables
        //Conversiones
        Pattern p1 = Pattern.compile(patronTexto);
        Matcher matcherNombre = p1.matcher(jTextField6.getText());
        Matcher matcherApellido = p1.matcher(jTextField7.getText());
        
        if(jTextField6.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso datos en el campo Nombre");
        }else if(matcherNombre.matches()){
        
        if(jTextField7.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso datos en el campo Apellido");
        }else if(matcherApellido.matches()){
            
            if(jComboRango1.getSelectedIndex()==0){
            JOptionPane.showMessageDialog(null, "No se eligio valor en el campo Grado");
            }else{
                //
        //ejecucion de insercion
        if(estado==false){
            //Finaliza Estado de consulta mysql Estado des sistema false
            Statement algo = ConexionSql.conectarse();
            String consultar_t = "SELECT MAX(ID) AS ID FROM personalasistente";
            ResultSet acep;
                try {
                  acep = algo.executeQuery(consultar_t);
                  while (acep.next()) {
                  datomysql=Integer.parseInt(acep.getString("ID"));
                  //System.out.println(datomysql);
                  }
        //ingresos de datos a la tabla
        datos[0]=datomysql+1+"";
        datos[1]=radicado+"";
        datos[2] = this.jTextField6.getText();
        this.jTextField6.setText(null);
        datos[3] = this.jTextField7.getText();
        this.jTextField7.setText(null);
        datos[4] = this.jComboRango1.getSelectedItem()+"";
        this.jComboRango1.setSelectedIndex(0);
        tabla.addRow(datos);
        this.jTextField6.grabFocus();
        n = tabla.getRowCount();
        jTextField24.setText("" + n);
        // finaliza ingresos de datos a la tabla 
      
       //inserción  a la base de datos estado false
        datos[0]=datomysql+1+"";                 
        insertar=datos[0]+","+datos[1]+",'"+datos[2]+"','"+datos[3]+"','"+datos[4]+"'";
        Statement sta = ConexionSql.conectarse();
        String entra = "insert into personalasistente values ("+insertar+")";
        try {
            if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
              {
                  JOptionPane.showMessageDialog(rootPane,"Entrada correcta");
              }
              else {
              JOptionPane.showMessageDialog(rootPane,"Entrada incorrecta");

              }
        } catch (SQLException ex) {
            Logger.getLogger(Hoja_Vida.class.getName()).log(Level.SEVERE, null, ex);
        }
        //Finaliza inserción  a la base de datos estado false            
                } catch (SQLException ex) {
                    Logger.getLogger(reporteinstruccion.class.getName()).log(Level.SEVERE, null, ex);
                }
            //Finaliza Estado de consulta mysql Estado des sistema false  
         
            //inserción  a la base de datos estado true    
        }else if(estado==true){
            
        //ingresos de datos a la tabla
        datos[0]=dato;
        datos[1]=radicado+"";
        datos[2] = this.jTextField6.getText();
        this.jTextField6.setText(null);
        datos[3] = this.jTextField7.getText();
        this.jTextField7.setText(null);
        datos[4] = this.jComboRango1.getSelectedItem()+"";
        this.jComboRango1.setSelectedIndex(0);
        tabla.addRow(datos);
        this.jTextField6.grabFocus();
        n = tabla.getRowCount();
        jTextField24.setText("" + n);
        // finaliza ingresos de datos a la tabla 
      
       //inserción  a la base de datos estado false
        datos[0]=dato;                 
        insertar=datos[0]+","+datos[1]+",'"+datos[2]+"','"+datos[3]+"','"+datos[4]+"'";
        Statement sta = ConexionSql.conectarse();
        String entra = "insert into personalasistente values ("+insertar+")";
        try {
            if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
              {
                  JOptionPane.showMessageDialog(rootPane,"Entrada correcta");
                  estado=false;
              }
              else {
              JOptionPane.showMessageDialog(rootPane,"Entrada incorrecta");

              }
        } catch (SQLException ex) {
            Logger.getLogger(Hoja_Vida.class.getName()).log(Level.SEVERE, null, ex);
        }
            
        }
        // finaliza ejecucion de insercion
            //
            }
        }else{
        JOptionPane.showMessageDialog(null, "El campo Apellido solo puede contener letras ");
        }
        
        }else{
        JOptionPane.showMessageDialog(null, "El campo Nombre solo puede contener letras ");
        }
        
        
        
        

    }//GEN-LAST:event_jButton1ActionPerformed

    private void jTextField7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField7ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField7ActionPerformed

    private void jTextField24ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField24ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField24ActionPerformed

    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
        //Variables
        String patronTexto = "([a-zA-Z]+)";  
        int n;
        String insertar2;
        String datos2[] = new String[5];
        int datomysql2 = 0;
        // finaliza Variables
        
        Pattern p1 = Pattern.compile(patronTexto);
        Matcher matcherNombre2 = p1.matcher(jTextField8.getText());
        Matcher matcherApellido2 = p1.matcher(jTextField9.getText());
        
        if(jTextField8.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso datos en el campo Nombre");
        }else if(matcherNombre2.matches()){
        
        if(jTextField9.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso datos en el campo Apellido");
        }else if(matcherApellido2.matches()){
            
            if(jComboRango2.getSelectedIndex()==0){
            JOptionPane.showMessageDialog(null, "No se eligio valor en el campo Grado");
            }else{
           //
        //ejecucion de insercion
        if(estado2==false){
            //Finaliza Estado de consulta mysql Estado des sistema false
            Statement algo = ConexionSql.conectarse();
            String consultar_t = "SELECT MAX(ID) AS ID FROM sinexcusa";
            ResultSet acep;
                try {
                  acep = algo.executeQuery(consultar_t);
                  while (acep.next()) {
                  datomysql2=Integer.parseInt(acep.getString("ID"));
                 // System.out.println(datomysql2);
                  }
        //ingresos de datos a la tabla
        datos2[0]=datomysql2+1+"";
        datos2[1]=radicado+"";
        datos2[2] = this.jTextField8.getText();
        this.jTextField8.setText(null);
        datos2[3] = this.jTextField9.getText();
        this.jTextField9.setText(null);
        datos2[4] = this.jComboRango2.getSelectedItem()+"";
        this.jComboRango2.setSelectedIndex(0);
        tabla1.addRow(datos2);
        this.jTextField8.grabFocus();
        n = tabla1.getRowCount();
        jTextField25.setText("" + n);
        // finaliza ingresos de datos a la tabla 
      
       //inserción  a la base de datos estado false
        datos2[0]=datomysql2+1+"";                 
        insertar2=datos2[0]+","+datos2[1]+",'"+datos2[2]+"','"+datos2[3]+"','"+datos2[4]+"'";
        Statement sta = ConexionSql.conectarse();
        String entra = "insert into sinexcusa values ("+insertar2+")";
        try {
            if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
              {
                  JOptionPane.showMessageDialog(rootPane,"Entrada correcta");
              }
              else {
              JOptionPane.showMessageDialog(rootPane,"Entrada incorrecta");

              }
        } catch (SQLException ex) {
            Logger.getLogger(Hoja_Vida.class.getName()).log(Level.SEVERE, null, ex);
        }
        //Finaliza inserción  a la base de datos estado false            
                } catch (SQLException ex) {
                    Logger.getLogger(reporteinstruccion.class.getName()).log(Level.SEVERE, null, ex);
                }
            //Finaliza Estado de consulta mysql Estado des sistema false  
         
            //inserción  a la base de datos estado true    
        }else if(estado2==true){
            
        //ingresos de datos a la tabla
        datos2[0]=dato2;
        datos2[1]=radicado+"";
        datos2[2] = this.jTextField8.getText();
        this.jTextField8.setText(null);
        datos2[3] = this.jTextField9.getText();
        this.jTextField9.setText(null);
        datos2[4] = this.jComboRango2.getSelectedItem()+"";
        this.jComboRango2.setSelectedIndex(0);
        tabla1.addRow(datos2);
        this.jTextField8.grabFocus();
        n = tabla1.getRowCount();
        jTextField25.setText("" + n);
        // finaliza ingresos de datos a la tabla 
      
       //inserción  a la base de datos estado false
        datos2[0]=dato2;                 
        insertar2=datos2[0]+","+datos2[1]+",'"+datos2[2]+"','"+datos2[3]+"','"+datos2[4]+"'";
        Statement sta = ConexionSql.conectarse();
        String entra = "insert into sinexcusa values ("+insertar2+")";
        try {
            if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
              {
                  JOptionPane.showMessageDialog(rootPane,"Entrada correcta");
                  estado2=false;
              }
              else {
              JOptionPane.showMessageDialog(rootPane,"Entrada incorrecta");

              }
        } catch (SQLException ex) {
            Logger.getLogger(Hoja_Vida.class.getName()).log(Level.SEVERE, null, ex);
        }
            
        }
        // finaliza ejecucion de insercion
            //
            }
        }else{
        JOptionPane.showMessageDialog(null, "El campo Apellido solo puede contener letras ");
        }
        
        }else{
        JOptionPane.showMessageDialog(null, "El campo Nombre solo puede contener letras ");
        }
    }//GEN-LAST:event_jButton3ActionPerformed

    private void jTextField25ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField25ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField25ActionPerformed

    private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton5ActionPerformed
        // Variables
        String patronTexto = "([a-zA-Z]+)";
        int n;
        String insertar3;
        String datos3[] = new String[5];
        int datomysql3=0;
        // Finaliza Variables
        
        Pattern p1 = Pattern.compile(patronTexto);
        Matcher matcherNombre = p1.matcher(jTextField10.getText());
        Matcher matcherApellido = p1.matcher(jTextField11.getText());
        
        if(jTextField10.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso datos en el campo Nombre");
        }else if(matcherNombre.matches()){
        
        if(jTextField11.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso datos en el campo Apellido");
        }else if(matcherApellido.matches()){
            
            if(jComboRango3.getSelectedIndex()==0){
            JOptionPane.showMessageDialog(null, "No se eligio valor en el campo Grado");
            }else{
             //
        //ejecucion de insercion
        if(estado3==false){
            //Finaliza Estado de consulta mysql Estado des sistema false
            Statement algo = ConexionSql.conectarse();
            String consultar_t = "SELECT MAX(ID) AS ID FROM conexcusa";
            ResultSet acep;
                try {
                  acep = algo.executeQuery(consultar_t);
                  while (acep.next()) {
                  datomysql3=Integer.parseInt(acep.getString("ID"));
                 // System.out.println(datomysql3);
                  }
        //ingresos de datos a la tabla
        datos3[0]=datomysql3+1+"";
        datos3[1]=radicado+"";
        datos3[2] = this.jTextField10.getText();
        this.jTextField10.setText(null);
        datos3[3] = this.jTextField11.getText();
        this.jTextField11.setText(null);
        datos3[4] = this.jComboRango3.getSelectedItem()+"";
        this.jComboRango3.setSelectedIndex(0);
        tabla2.addRow(datos3);
        this.jTextField10.grabFocus();
        n = tabla2.getRowCount();
        jTextField26.setText("" + n);
        // finaliza ingresos de datos a la tabla 
      
       //inserción  a la base de datos estado false
        datos3[0]=datomysql3+1+"";                 
        insertar3=datos3[0]+","+datos3[1]+",'"+datos3[2]+"','"+datos3[3]+"','"+datos3[4]+"'";
        Statement sta = ConexionSql.conectarse();
        String entra = "insert into conexcusa values ("+insertar3+")";
        try {
            if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
              {
                  JOptionPane.showMessageDialog(rootPane,"Entrada correcta");
              }
              else {
              JOptionPane.showMessageDialog(rootPane,"Entrada incorrecta");

              }
        } catch (SQLException ex) {
            Logger.getLogger(Hoja_Vida.class.getName()).log(Level.SEVERE, null, ex);
        }
        //Finaliza inserción  a la base de datos estado false            
                } catch (SQLException ex) {
                    Logger.getLogger(reporteinstruccion.class.getName()).log(Level.SEVERE, null, ex);
                }
            //Finaliza Estado de consulta mysql Estado des sistema false  
         
            //inserción  a la base de datos estado true    
        }else if(estado3==true){
            
        //ingresos de datos a la tabla
        datos3[0]=dato3;
        datos3[1]=radicado+"";
        datos3[2] = this.jTextField10.getText();
        this.jTextField10.setText(null);
        datos3[3] = this.jTextField11.getText();
        this.jTextField11.setText(null);
        datos3[4] = this.jComboRango3.getSelectedItem()+"";
        this.jComboRango3.setSelectedIndex(0);
        tabla2.addRow(datos3);
        this.jTextField10.grabFocus();
        n = tabla2.getRowCount();
        jTextField26.setText("" + n);
        // finaliza ingresos de datos a la tabla 
      
       //inserción  a la base de datos estado false
        datos3[0]=dato3;                 
        insertar3=datos3[0]+","+datos3[1]+",'"+datos3[2]+"','"+datos3[3]+"','"+datos3[4]+"'";
        Statement sta = ConexionSql.conectarse();
        String entra = "insert into conexcusa values ("+insertar3+")";
        try {
            if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
              {
                  JOptionPane.showMessageDialog(rootPane,"Entrada correcta");
                  estado3=false;
              }
              else {
              JOptionPane.showMessageDialog(rootPane,"Entrada incorrecta");

              }
        } catch (SQLException ex) {
            Logger.getLogger(Hoja_Vida.class.getName()).log(Level.SEVERE, null, ex);
        }
            
        }
        // finaliza ejecucion de insercion
            //
            }
        }else{
        JOptionPane.showMessageDialog(null, "El campo Apellido solo puede contener letras ");
        }
        
        }else{
        JOptionPane.showMessageDialog(null, "El campo Nombre solo puede contener letras ");
        }
        
        
        
    }//GEN-LAST:event_jButton5ActionPerformed

    private void jTextField11ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField11ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField11ActionPerformed

    private void jTextField26ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField26ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField26ActionPerformed

    private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton7ActionPerformed
        // Varibles
        String patronTexto = "([a-zA-Z]+)";
        int n;
        String insertar4;
        String datos4[] = new String[5];
        int datomysql4=0;
        // Finaliza Variables
        
        Pattern p1 = Pattern.compile(patronTexto);
        Matcher matcherNombre = p1.matcher(jTextField12.getText());
        Matcher matcherApellido = p1.matcher(jTextField13.getText());
        
        if(jTextField12.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso datos en el campo Nombre");
        }else if(matcherNombre.matches()){
        
        if(jTextField13.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso datos en el campo Apellido");
        }else if(matcherApellido.matches()){
            
            if(jComboRango4.getSelectedIndex()==0){
            JOptionPane.showMessageDialog(null, "No se eligio valor en el campo Grado");
            }else{
            //
        //ejecucion de insercion
        if(estado4==false){
            //Finaliza Estado de consulta mysql Estado des sistema false
            Statement algo = ConexionSql.conectarse();
            String consultar_t = "SELECT MAX(ID) AS ID FROM conlicencia";
            ResultSet acep;
                try {
                  acep = algo.executeQuery(consultar_t);
                  while (acep.next()) {
                  datomysql4=Integer.parseInt(acep.getString("ID"));
                 // System.out.println(datomysql4);
                  }
        //ingresos de datos a la tabla
        datos4[0]=datomysql4+1+"";
        datos4[1]=radicado+"";
        datos4[2] = this.jTextField12.getText();
        this.jTextField12.setText(null);
        datos4[3] = this.jTextField13.getText();
        this.jTextField13.setText(null);
        datos4[4] = this.jComboRango4.getSelectedItem()+"";
        this.jComboRango4.setSelectedIndex(0);
        tabla3.addRow(datos4);
        this.jTextField12.grabFocus();
        n = tabla3.getRowCount();
        jTextField27.setText("" + n);
        // finaliza ingresos de datos a la tabla 
      
       //inserción  a la base de datos estado false
        datos4[0]=datomysql4+1+"";                 
        insertar4=datos4[0]+","+datos4[1]+",'"+datos4[2]+"','"+datos4[3]+"','"+datos4[4]+"'";
        Statement sta = ConexionSql.conectarse();
        String entra = "insert into conlicencia values ("+insertar4+")";
        try {
            if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
              {
                  JOptionPane.showMessageDialog(rootPane,"Entrada correcta");
              }
              else {
              JOptionPane.showMessageDialog(rootPane,"Entrada incorrecta");

              }
        } catch (SQLException ex) {
            Logger.getLogger(Hoja_Vida.class.getName()).log(Level.SEVERE, null, ex);
        }
        //Finaliza inserción  a la base de datos estado false            
                } catch (SQLException ex) {
                    Logger.getLogger(reporteinstruccion.class.getName()).log(Level.SEVERE, null, ex);
                }
            //Finaliza Estado de consulta mysql Estado des sistema false  
         
            //inserción  a la base de datos estado true    
        }else if(estado4==true){
            
        //ingresos de datos a la tabla
        datos4[0]=dato4;
        datos4[1]=radicado+"";
        datos4[2] = this.jTextField12.getText();
        this.jTextField12.setText(null);
        datos4[3] = this.jTextField13.getText();
        this.jTextField13.setText(null);
        datos4[4] = this.jComboRango4.getSelectedItem()+"";
        this.jComboRango4.setSelectedIndex(0);
        tabla3.addRow(datos4);
        this.jTextField12.grabFocus();
        n = tabla3.getRowCount();
        jTextField27.setText("" + n);
        // finaliza ingresos de datos a la tabla 
      
       //inserción  a la base de datos estado false
        datos4[0]=dato4;                 
        insertar4=datos4[0]+","+datos4[1]+",'"+datos4[2]+"','"+datos4[3]+"','"+datos4[4]+"'";
        Statement sta = ConexionSql.conectarse();
        String entra = "insert into conlicencia values ("+insertar4+")";
        try {
            if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
              {
                  JOptionPane.showMessageDialog(rootPane,"Entrada correcta");
                  estado4=false;
              }
              else {
              JOptionPane.showMessageDialog(rootPane,"Entrada incorrecta");

              }
        } catch (SQLException ex) {
            Logger.getLogger(Hoja_Vida.class.getName()).log(Level.SEVERE, null, ex);
        }
            
        }
        // finaliza ejecucion de insercion
            //
            }
        }else{
        JOptionPane.showMessageDialog(null, "El campo Apellido solo puede contener letras ");
        }
        
        }else{
        JOptionPane.showMessageDialog(null, "El campo Nombre solo puede contener letras ");
        }
        
        
       
    }//GEN-LAST:event_jButton7ActionPerformed

    private void jTextField27ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField27ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField27ActionPerformed

    private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton9ActionPerformed
        // Variables
        String patronTexto = "([a-zA-Z]+)";
        int n;
        String insertar5;
        String datos5[] = new String[5];
        int datomysql5=0;
        // Finaliza Variables
        
        Pattern p1 = Pattern.compile(patronTexto);
        Matcher matcherNombre = p1.matcher(jTextField14.getText());
        Matcher matcherApellido = p1.matcher(jTextField15.getText());
        
        if(jTextField14.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso datos en el campo Nombre");
        }else if(matcherNombre.matches()){
        
        if(jTextField15.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso datos en el campo Apellido");
        }else if(matcherApellido.matches()){
            
            if(jComboRango5.getSelectedIndex()==0){
            JOptionPane.showMessageDialog(null, "No se eligio valor en el campo Grado");
            }else{
             //
        //ejecucion de insercion
        if(estado5==false){
            //Finaliza Estado de consulta mysql Estado des sistema false
            Statement algo = ConexionSql.conectarse();
            String consultar_t = "SELECT MAX(ID) AS ID FROM enfermos";
            ResultSet acep;
                try {
                  acep = algo.executeQuery(consultar_t);
                  while (acep.next()) {
                  datomysql5=Integer.parseInt(acep.getString("ID"));
                  //System.out.println(datomysql5);
                  }
        //ingresos de datos a la tabla
        datos5[0]=datomysql5+1+"";
        datos5[1]=radicado+"";
        datos5[2] = this.jTextField14.getText();
        this.jTextField14.setText(null);
        datos5[3] = this.jTextField15.getText();
        this.jTextField15.setText(null);
        datos5[4] = this.jComboRango5.getSelectedItem()+"";
        this.jComboRango5.setSelectedIndex(0);
        tabla4.addRow(datos5);
        this.jTextField14.grabFocus();
        n = tabla4.getRowCount();
        jTextField28.setText("" + n);
        // finaliza ingresos de datos a la tabla 
      
       //inserción  a la base de datos estado false
        datos5[0]=datomysql5+1+"";                 
        insertar5=datos5[0]+","+datos5[1]+",'"+datos5[2]+"','"+datos5[3]+"','"+datos5[4]+"'";
        Statement sta = ConexionSql.conectarse();
        String entra = "insert into enfermos values ("+insertar5+")";
        try {
            if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
              {
                  JOptionPane.showMessageDialog(rootPane,"Entrada correcta");
              }
              else {
              JOptionPane.showMessageDialog(rootPane,"Entrada incorrecta");

              }
        } catch (SQLException ex) {
            Logger.getLogger(Hoja_Vida.class.getName()).log(Level.SEVERE, null, ex);
        }
        //Finaliza inserción  a la base de datos estado false            
                } catch (SQLException ex) {
                    Logger.getLogger(reporteinstruccion.class.getName()).log(Level.SEVERE, null, ex);
                }
            //Finaliza Estado de consulta mysql Estado des sistema false  
         
            //inserción  a la base de datos estado true    
        }else if(estado5==true){
            
        //ingresos de datos a la tabla
        datos5[0]=dato5;
        datos5[1]=radicado+"";
        datos5[2] = this.jTextField14.getText();
        this.jTextField14.setText(null);
        datos5[3] = this.jTextField15.getText();
        this.jTextField15.setText(null);
        datos5[4] = this.jComboRango5.getSelectedItem()+"";
        this.jComboRango5.setSelectedIndex(0);
        tabla4.addRow(datos5);
        this.jTextField14.grabFocus();
        n = tabla4.getRowCount();
        jTextField28.setText("" + n);
        // finaliza ingresos de datos a la tabla 
      
       //inserción  a la base de datos estado false
        datos5[0]=dato5;                 
        insertar5=datos5[0]+","+datos5[1]+",'"+datos5[2]+"','"+datos5[3]+"','"+datos5[4]+"'";
        Statement sta = ConexionSql.conectarse();
        String entra = "insert into enfermos values ("+insertar5+")";
        try {
            if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
              {
                  JOptionPane.showMessageDialog(rootPane,"Entrada correcta");
                  estado5=false;
              }
              else {
              JOptionPane.showMessageDialog(rootPane,"Entrada incorrecta");

              }
        } catch (SQLException ex) {
            Logger.getLogger(Hoja_Vida.class.getName()).log(Level.SEVERE, null, ex);
        }
            
        }
        // finaliza ejecucion de insercion
            //
            }
        }else{
        JOptionPane.showMessageDialog(null, "El campo Apellido solo puede contener letras ");
        }
        
        }else{
        JOptionPane.showMessageDialog(null, "El campo Nombre solo puede contener letras ");
        }
        
      
    }//GEN-LAST:event_jButton9ActionPerformed

    private void jTextField28ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField28ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField28ActionPerformed

    private void jButton13ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton13ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jButton13ActionPerformed

    private void jButton13MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton13MouseClicked
        
        String patronNumerico = "([0-9]+)";
        String patronTexto = "([a-zA-Z]+)";
        Pattern p2 = Pattern.compile(patronNumerico);
        
        
        String Folioradicado=FolioRadicado.getText();
        Matcher matcherNumFolio = p2.matcher(Folioradicado);
        
        
        if(Folioradicado.equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso datos en el campo Radicado Folio No.");
        }else if (matcherNumFolio.matches()){
        radicado=Integer.parseInt(Folioradicado);
        }else{
        JOptionPane.showMessageDialog(null, "El campo Radicado Folio No. solo puede contener numeros ");
        }  
        String Fechaelaboracion=FechaElaboracion.getText();
        String Hora=hora.getText()+":"+minutos.getText()+"-"+horario.getSelectedItem()+"";
        String ClaseInstruccion = "";
        if (BomberilPactica.isSelected()) {
        ClaseInstruccion="Bomberil Práctica";    
        }else if(PrimerosAuxilios.isSelected()){
        ClaseInstruccion="Primeros Auxilios";
        }else if(BomberilTeorica.isSelected()){
        ClaseInstruccion="Bomberil Teórica";
        }else if(BomberilFisica.isSelected()){
        ClaseInstruccion="Educación Fisica";
        }else if(BomberilMilitar.isSelected()){
        ClaseInstruccion="Militar";
        }else if(Otros.isSelected()){
        ClaseInstruccion="Otro";
        }
        String NomInstructor=NombreInstructor.getText();
        String ApeInstructor=ApellidoInstructor.getText();
        String Grado=jComboGrado.getSelectedItem()+"";
        String NumMaquina=textMaquina.getText();
        String GalonesAgua=txtGalones.getText();
        String Escalera=textEscalera.getText();
        String Manila=textManila.getText();
        String TramosManguera=textTramos.getText();
        String Otro=textOtro.getText();
        String Observa=observa.getText();
        
       
       
        Pattern p1 = Pattern.compile(patronTexto);
        Matcher matcherNombre = p1.matcher(NomInstructor);
        Matcher matcherApellido = p1.matcher(ApeInstructor);

        Matcher matcherNumHora = p2.matcher(hora.getText());
        Matcher matcherNumMinutos = p2.matcher(minutos.getText());
       
       
        
       
        if (Fechaelaboracion.equals("")) {
             JOptionPane.showMessageDialog(null, "No se ingreso datos en el campo Fecha Elaboración");
        }else if(hora.getText().equals("")){
             JOptionPane.showMessageDialog(null, "No se ingreso la Hora");
        }else if(matcherNumHora.matches()){
        if(Integer.parseInt(hora.getText())>=1 && Integer.parseInt(hora.getText())<=12 ){
        if(minutos.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso los Minutos");
        }else if(matcherNumMinutos.matches()){
        if(Integer.parseInt(minutos.getText())>=0 && Integer.parseInt(minutos.getText())<=59 ){
        
        if(horario.getSelectedIndex()==0){
        JOptionPane.showMessageDialog(null, "No se ingreso el sistema horario AM o PM");
        
        }else if (ClaseInstruccion.equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso la clase de instrucción");
        }else if(NomInstructor.equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso el Nombre del Instructor");
        }else if(matcherNombre.matches()){
        if(ApeInstructor.equals("")){
          JOptionPane.showMessageDialog(null, "No se ingreso el Apellido del Instructor");
        }else if(matcherApellido.matches()){
        
        if(jComboGrado.getSelectedIndex()==0){
        JOptionPane.showMessageDialog(null, "No se ingreso el Grado Instructor");
        }else if(NumMaquina.equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso el Numero de la Maquina");
        }else if(GalonesAgua.equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso el Numero de Galones de agua");
        }else if(Escalera.equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso el Numero de Escaleras");
        }else if(Manila.equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso el Numero Manilas");
        }else if(TramosManguera.equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso el Numero de Tramos de mangera");
        }else if(Otro.equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso los datos en el campo Otro");
        }else if(Observa.equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso la Observacion");
        }else{
        // Inicia instrucción insert 
        Statement sta = ConexionSql.conectarse();
          String entra =  "insert into reporteintruccion values (" + Folioradicado + ",'" + Fechaelaboracion + "','" + Hora + "','"+ClaseInstruccion+"','"+NomInstructor+"','"+ApeInstructor+"','"+Grado+"','"+NumMaquina+"','"+GalonesAgua+"','"+Escalera+"','"+Manila+"','"+TramosManguera+"','"+Otro+"','"+Observa+"')";
          //System.out.println(entra);
    try {
        if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
        {
            JOptionPane.showMessageDialog(rootPane,"Entrada correcta");
        }
        else {
        JOptionPane.showMessageDialog(rootPane,"Entrada incorrecta");

        }
    } catch (SQLException ex) {
        Logger.getLogger(reporteinstruccion.class.getName()).log(Level.SEVERE, null, ex);
    }    
       //Finaliza instruccion insert                 
        }    
            
        }else{
        JOptionPane.showMessageDialog(null, "El campo Apellido del Instructor solo puede contener Letras ");
        }
        }else{
        JOptionPane.showMessageDialog(null, "El campo Nombre del Instructor solo puede contener Letras ");
        }
        
        }else{
        JOptionPane.showMessageDialog(null, "El campo Minutos solo puede contener numeros del 0 al 59 ");
        }             
        }else{
        JOptionPane.showMessageDialog(null, "El campo Minutos solo puede contener numeros ");
        }
        }else{
        JOptionPane.showMessageDialog(null, "El campo Hora solo puede contener numeros del 1 al 12 ");
        }
        }else {
        JOptionPane.showMessageDialog(null, "El campo Hora solo puede contener numeros ");
        }          
    }//GEN-LAST:event_jButton13MouseClicked

    private void jButton14MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton14MouseClicked
        
        FolioRadicado.setText("");
        FechaElaboracion.setText("");
        hora.setText("");
        minutos.setText("");
        horario.setSelectedIndex(0);
        
        NombreInstructor.setText("");
        ApellidoInstructor.setText("");
        jComboGrado.setSelectedIndex(0);
        textMaquina.setText("0");
        txtGalones.setText("0");
        textEscalera.setText("0");
        textManila.setText("0");
        textTramos.setText("0");
        textOtro.setText("0");
        observa.setText("0");
    }//GEN-LAST:event_jButton14MouseClicked

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        int fila, n;       
        estado=true;
        fila = this.jTable1.getSelectedRow();
        if (fila >= 0) {
            dato=(String)jTable1.getValueAt(fila,0);
            tabla.removeRow(fila);
            n = tabla.getRowCount();
            jTextField24.setText("" + n);
            Statement sta = ConexionSql.conectarse();
        String entra = "DELETE FROM personalasistente WHERE ID="+dato+" ";
        try {
            if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
              {
                  JOptionPane.showMessageDialog(rootPane,"Eliminación correcta");
              }
              else {
              JOptionPane.showMessageDialog(rootPane,"Eliminación incorrecta");
              }
        } catch (SQLException ex) {
            Logger.getLogger(Hoja_Vida.class.getName()).log(Level.SEVERE, null, ex);
        }
            
            
        } else {
            JOptionPane.showMessageDialog(null, "No selecciono ningun campo");
        }
    }//GEN-LAST:event_jButton2ActionPerformed

    private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
        int fila, n;
        estado2=true;
        fila = this.jTable2.getSelectedRow();
        if (fila >= 0) {
            dato2=(String)jTable2.getValueAt(fila,0);         
            tabla1.removeRow(fila);
            n = tabla1.getRowCount();
            jTextField25.setText("" + n);
            
            Statement sta = ConexionSql.conectarse();
        String entra = "DELETE FROM sinexcusa WHERE ID="+dato2+"";
        try {
            if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
              {
                  JOptionPane.showMessageDialog(rootPane,"Eliminación correcta");
              }
              else {
              JOptionPane.showMessageDialog(rootPane,"Eliminación incorrecta");
              }
        } catch (SQLException ex) {
            Logger.getLogger(Hoja_Vida.class.getName()).log(Level.SEVERE, null, ex);
        }
            
            
        } else {
            JOptionPane.showMessageDialog(null, "No selecciono ningun campo");
        }
    }//GEN-LAST:event_jButton4ActionPerformed

    private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton6ActionPerformed
       int fila, n;
       estado3=true;
        fila = this.jTable3.getSelectedRow();
        if (fila >= 0) {
            dato3=(String)jTable3.getValueAt(fila,0);
            tabla2.removeRow(fila);
            n = tabla2.getRowCount();
            jTextField26.setText("" + n);
            
            Statement sta = ConexionSql.conectarse();
        String entra = "DELETE FROM conexcusa WHERE ID="+dato3+"";
        try {
            if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
              {
                  JOptionPane.showMessageDialog(rootPane,"Eliminación correcta");
              }
              else {
              JOptionPane.showMessageDialog(rootPane,"Eliminación incorrecta");
              }
        } catch (SQLException ex) {
            Logger.getLogger(Hoja_Vida.class.getName()).log(Level.SEVERE, null, ex);
        }
            
            
        } else {
            JOptionPane.showMessageDialog(null, "No selecciono ningun campo");
        }
    }//GEN-LAST:event_jButton6ActionPerformed

    private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton8ActionPerformed
      int fila, n;
      estado4=true;
        fila = this.jTable4.getSelectedRow();
        if (fila >= 0) {
            dato4=(String)jTable4.getValueAt(fila,0);
            tabla3.removeRow(fila);
            n = tabla3.getRowCount();
            jTextField27.setText("" + n);
            
            Statement sta = ConexionSql.conectarse();
        String entra = "DELETE FROM conlicencia WHERE ID="+dato4+"";
        try {
            if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
              {
                  JOptionPane.showMessageDialog(rootPane,"Eliminación correcta");
              }
              else {
              JOptionPane.showMessageDialog(rootPane,"Eliminación incorrecta");
              }
        } catch (SQLException ex) {
            Logger.getLogger(Hoja_Vida.class.getName()).log(Level.SEVERE, null, ex);
        }
            
            
        } else {
            JOptionPane.showMessageDialog(null, "No selecciono ningun campo");
        }
    }//GEN-LAST:event_jButton8ActionPerformed

    private void jButton10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton10ActionPerformed
    int fila, n;
    estado5=true;
        fila = this.jTable5.getSelectedRow();
        if (fila >= 0) {
            dato5=(String)jTable5.getValueAt(fila,0);
            tabla4.removeRow(fila);
            n = tabla4.getRowCount();
            jTextField28.setText("" + n);
            
            Statement sta = ConexionSql.conectarse();
        String entra = "DELETE FROM enfermos WHERE ID="+dato5+"";
        try {
            if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
              {
                  JOptionPane.showMessageDialog(rootPane,"Eliminación correcta");
              }
              else {
              JOptionPane.showMessageDialog(rootPane,"Eliminación incorrecta");
              }
        } catch (SQLException ex) {
            Logger.getLogger(Hoja_Vida.class.getName()).log(Level.SEVERE, null, ex);
        }
            
            
        } else {
            JOptionPane.showMessageDialog(null, "No selecciono ningun campo");
        }
    }//GEN-LAST:event_jButton10ActionPerformed

    private void jTextField29ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField29ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField29ActionPerformed

    private void jButton12ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton12ActionPerformed
        int fila, n;
        estado6=true;
        fila = this.jTable6.getSelectedRow();
        if (fila >= 0) {
            dato6=(String)jTable6.getValueAt(fila,0);
            tabla5.removeRow(fila);
            n = tabla5.getRowCount();
            jTextField29.setText("" + n);

            Statement sta = ConexionSql.conectarse();
            String entra = "DELETE FROM suspendidos WHERE ID="+dato6+"";
            try {
                if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
                {
                    JOptionPane.showMessageDialog(rootPane,"Eliminación correcta");
                }
                else {
                    JOptionPane.showMessageDialog(rootPane,"Eliminación incorrecta");
                }
            } catch (SQLException ex) {
                Logger.getLogger(Hoja_Vida.class.getName()).log(Level.SEVERE, null, ex);
            }

        } else {
            JOptionPane.showMessageDialog(null, "No selecciono ningun campo");
        }
    }//GEN-LAST:event_jButton12ActionPerformed

    private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton11ActionPerformed

        String patronTexto = "([a-zA-Z]+)";
        int n;
        String insertar6;
        String datos6[] = new String[5];
        int datomysql6=0;
        
        Pattern p1 = Pattern.compile(patronTexto);
        Matcher matcherNombre = p1.matcher(jTextField16.getText());
        Matcher matcherApellido = p1.matcher(jTextField17.getText());
        
        if(jTextField16.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso datos en el campo Nombre");
        }else if(matcherNombre.matches()){
        
        if(jTextField17.getText().equals("")){
        JOptionPane.showMessageDialog(null, "No se ingreso datos en el campo Apellido");
        }else if(matcherApellido.matches()){
            
            if(jComboRango6.getSelectedIndex()==0){
            JOptionPane.showMessageDialog(null, "No se eligio valor en el campo Grado");
            }else{
             //
        //ejecucion de insercion
        if(estado6==false){
            //Finaliza Estado de consulta mysql Estado des sistema false
            Statement algo = ConexionSql.conectarse();
            String consultar_t = "SELECT MAX(ID) AS ID FROM suspendidos";
            ResultSet acep;
                try {
                  acep = algo.executeQuery(consultar_t);
                  while (acep.next()) {
                  datomysql6=Integer.parseInt(acep.getString("ID"));
                 // System.out.println(datomysql6);
                  }
        //ingresos de datos a la tabla
        datos6[0]=datomysql6+1+"";
        datos6[1]=radicado+"";
        datos6[2] = this.jTextField16.getText();
        this.jTextField16.setText(null);
        datos6[3] = this.jTextField17.getText();
        this.jTextField17.setText(null);
        datos6[4] = this.jComboRango6.getSelectedItem()+"";
        this.jComboRango6.setSelectedIndex(0);
        tabla5.addRow(datos6);
        this.jTextField16.grabFocus();
        n = tabla5.getRowCount();
        jTextField29.setText("" + n);
        // finaliza ingresos de datos a la tabla 
      
       //inserción  a la base de datos estado false
        datos6[0]=datomysql6+1+"";                 
        insertar6=datos6[0]+","+datos6[1]+",'"+datos6[2]+"','"+datos6[3]+"','"+datos6[4]+"'";
        Statement sta = ConexionSql.conectarse();
        String entra = "insert into suspendidos values ("+insertar6+")";
        try {
            if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
              {
                  JOptionPane.showMessageDialog(rootPane,"Entrada correcta");
              }
              else {
              JOptionPane.showMessageDialog(rootPane,"Entrada incorrecta");

              }
        } catch (SQLException ex) {
            Logger.getLogger(Hoja_Vida.class.getName()).log(Level.SEVERE, null, ex);
        }
        //Finaliza inserción  a la base de datos estado false            
                } catch (SQLException ex) {
                    Logger.getLogger(reporteinstruccion.class.getName()).log(Level.SEVERE, null, ex);
                }
            //Finaliza Estado de consulta mysql Estado des sistema false  
         
            //inserción  a la base de datos estado true    
        }else if(estado6==true){
            
        //ingresos de datos a la tabla
        datos6[0]=dato6;
        datos6[1]=radicado+"";
        datos6[2] = this.jTextField16.getText();
        this.jTextField16.setText(null);
        datos6[3] = this.jTextField17.getText();
        this.jTextField17.setText(null);
        datos6[4] = this.jComboRango6.getSelectedItem()+"";
        this.jComboRango6.setSelectedIndex(0);
        tabla5.addRow(datos6);
        this.jTextField16.grabFocus();
        n = tabla5.getRowCount();
        jTextField29.setText("" + n);
        // finaliza ingresos de datos a la tabla 
      
       //inserción  a la base de datos estado false
        datos6[0]=dato6;                 
        insertar6=datos6[0]+","+datos6[1]+",'"+datos6[2]+"','"+datos6[3]+"','"+datos6[4]+"'";
        Statement sta = ConexionSql.conectarse();
        String entra = "insert into suspendidos values ("+insertar6+")";
        try {
            if (sta.executeUpdate(entra)!=sta.EXECUTE_FAILED)
              {
                  JOptionPane.showMessageDialog(rootPane,"Entrada correcta");
                  estado6=false;
              }
              else {
              JOptionPane.showMessageDialog(rootPane,"Entrada incorrecta");

              }
        } catch (SQLException ex) {
            Logger.getLogger(Hoja_Vida.class.getName()).log(Level.SEVERE, null, ex);
        }
            
        }
        // finaliza ejecucion de insercion
            //
            }
        }else{
        JOptionPane.showMessageDialog(null, "El campo Apellido solo puede contener letras ");
        }
        
        }else{
        JOptionPane.showMessageDialog(null, "El campo Nombre solo puede contener letras ");
        }
        
        
        
    }//GEN-LAST:event_jButton11ActionPerformed

    private void jCheckBox1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox1ActionPerformed
     jTextField6.setEnabled(true);
     jTextField7.setEnabled(true);
     jComboRango1.setEnabled(true);
     jButton1.setEnabled(true);
     jButton2.setEnabled(true);
    }//GEN-LAST:event_jCheckBox1ActionPerformed

    private void jCheckBox2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox2ActionPerformed
     jTextField6.setEnabled(false);
     jTextField7.setEnabled(false);
     jComboRango1.setEnabled(false);
     jButton1.setEnabled(false);
     jButton2.setEnabled(false);
    }//GEN-LAST:event_jCheckBox2ActionPerformed

    private void jCheckBox5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox5ActionPerformed
     jTextField8.setEnabled(true);
     jTextField9.setEnabled(true);
     jComboRango2.setEnabled(true);
     jButton3.setEnabled(true);
     jButton4.setEnabled(true);
    }//GEN-LAST:event_jCheckBox5ActionPerformed

    private void jCheckBox6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox6ActionPerformed
     jTextField8.setEnabled(false);
     jTextField9.setEnabled(false);
     jComboRango2.setEnabled(false);
     jButton3.setEnabled(false);
     jButton4.setEnabled(false);
    }//GEN-LAST:event_jCheckBox6ActionPerformed

    private void jCheckBox13ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox13ActionPerformed
    jTextField10.setEnabled(true);
    jTextField11.setEnabled(true);
    jComboRango3.setEnabled(true);
    jButton5.setEnabled(true);
    jButton6.setEnabled(true);
    }//GEN-LAST:event_jCheckBox13ActionPerformed

    private void jCheckBox14ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox14ActionPerformed
    jTextField10.setEnabled(false);
    jTextField11.setEnabled(false);
    jComboRango3.setEnabled(false);
    jButton5.setEnabled(false);
    jButton6.setEnabled(false);
    }//GEN-LAST:event_jCheckBox14ActionPerformed

    private void jCheckBox15ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox15ActionPerformed
    jTextField12.setEnabled(true);
    jTextField13.setEnabled(true);
    jComboRango4.setEnabled(true);
    jButton7.setEnabled(true);
    jButton8.setEnabled(true);
    }//GEN-LAST:event_jCheckBox15ActionPerformed

    private void jCheckBox16ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox16ActionPerformed
    jTextField12.setEnabled(false);
    jTextField13.setEnabled(false);
    jComboRango4.setEnabled(false);
    jButton7.setEnabled(false);
    jButton8.setEnabled(false);
    }//GEN-LAST:event_jCheckBox16ActionPerformed

    private void jCheckBox17ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox17ActionPerformed
    jTextField14.setEnabled(true);
jTextField15.setEnabled(true);
jComboRango5.setEnabled(true);
jButton9.setEnabled(true);
jButton10.setEnabled(true);
    }//GEN-LAST:event_jCheckBox17ActionPerformed

    private void jCheckBox18ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox18ActionPerformed
    jTextField14.setEnabled(false);
jTextField15.setEnabled(false);
jComboRango5.setEnabled(false);
jButton9.setEnabled(false);
jButton10.setEnabled(false);
    }//GEN-LAST:event_jCheckBox18ActionPerformed

    private void jCheckBox19ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox19ActionPerformed
    jTextField16.setEnabled(true);
jTextField17.setEnabled(true);
jComboRango6.setEnabled(true);
jButton11.setEnabled(true);
jButton12.setEnabled(true);
    }//GEN-LAST:event_jCheckBox19ActionPerformed

    private void jCheckBox20ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox20ActionPerformed
    jTextField16.setEnabled(false);
jTextField17.setEnabled(false);
jComboRango6.setEnabled(false);
jButton11.setEnabled(false);
jButton12.setEnabled(false);
    }//GEN-LAST:event_jCheckBox20ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(reporteinstruccion.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(reporteinstruccion.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(reporteinstruccion.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(reporteinstruccion.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new reporteinstruccion().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.ButtonGroup ActivapanelCinco;
    private javax.swing.ButtonGroup ActivapanelCuatro;
    private javax.swing.ButtonGroup ActivapanelDos;
    private javax.swing.ButtonGroup ActivapanelSeis;
    private javax.swing.ButtonGroup ActivapanelTres;
    private javax.swing.ButtonGroup ActivapanelUno;
    private javax.swing.JTextField ApellidoInstructor;
    private javax.swing.JCheckBox BomberilFisica;
    private javax.swing.JCheckBox BomberilMilitar;
    private javax.swing.JCheckBox BomberilPactica;
    private javax.swing.JCheckBox BomberilTeorica;
    private javax.swing.ButtonGroup ClaseInstruccion;
    private datechooser.beans.DateChooserCombo FechaElaboracion;
    private javax.swing.JTextField FolioRadicado;
    private javax.swing.JTextField NombreInstructor;
    private javax.swing.JCheckBox Otros;
    private javax.swing.JCheckBox PrimerosAuxilios;
    private javax.swing.JTextField hora;
    private javax.swing.JComboBox horario;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton10;
    private javax.swing.JButton jButton11;
    private javax.swing.JButton jButton12;
    private javax.swing.JButton jButton13;
    private javax.swing.JButton jButton14;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton6;
    private javax.swing.JButton jButton7;
    private javax.swing.JButton jButton8;
    private javax.swing.JButton jButton9;
    private javax.swing.JCheckBox jCheckBox1;
    private javax.swing.JCheckBox jCheckBox10;
    private javax.swing.JCheckBox jCheckBox11;
    private javax.swing.JCheckBox jCheckBox12;
    private javax.swing.JCheckBox jCheckBox13;
    private javax.swing.JCheckBox jCheckBox14;
    private javax.swing.JCheckBox jCheckBox15;
    private javax.swing.JCheckBox jCheckBox16;
    private javax.swing.JCheckBox jCheckBox17;
    private javax.swing.JCheckBox jCheckBox18;
    private javax.swing.JCheckBox jCheckBox19;
    private javax.swing.JCheckBox jCheckBox2;
    private javax.swing.JCheckBox jCheckBox20;
    private javax.swing.JCheckBox jCheckBox5;
    private javax.swing.JCheckBox jCheckBox6;
    private javax.swing.JCheckBox jCheckBox7;
    private javax.swing.JCheckBox jCheckBox8;
    private javax.swing.JCheckBox jCheckBox9;
    private javax.swing.JComboBox jComboGrado;
    private javax.swing.JComboBox jComboRango1;
    private javax.swing.JComboBox jComboRango2;
    private javax.swing.JComboBox jComboRango3;
    private javax.swing.JComboBox jComboRango4;
    private javax.swing.JComboBox jComboRango5;
    private javax.swing.JComboBox jComboRango6;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel38;
    private javax.swing.JLabel jLabel39;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel40;
    private javax.swing.JLabel jLabel41;
    private javax.swing.JLabel jLabel42;
    private javax.swing.JLabel jLabel43;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel12;
    private javax.swing.JPanel jPanel13;
    private javax.swing.JPanel jPanel14;
    private javax.swing.JPanel jPanel15;
    private javax.swing.JPanel jPanel16;
    private javax.swing.JPanel jPanel17;
    private javax.swing.JPanel jPanel18;
    private javax.swing.JPanel jPanel19;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel20;
    private javax.swing.JPanel jPanel21;
    private javax.swing.JPanel jPanel22;
    private javax.swing.JPanel jPanel23;
    private javax.swing.JPanel jPanel24;
    private javax.swing.JPanel jPanel25;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JScrollPane jScrollPane7;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JTable jTable1;
    private javax.swing.JTable jTable2;
    private javax.swing.JTable jTable3;
    private javax.swing.JTable jTable4;
    private javax.swing.JTable jTable5;
    private javax.swing.JTable jTable6;
    private javax.swing.JTextField jTextField10;
    private javax.swing.JTextField jTextField11;
    private javax.swing.JTextField jTextField12;
    private javax.swing.JTextField jTextField13;
    private javax.swing.JTextField jTextField14;
    private javax.swing.JTextField jTextField15;
    private javax.swing.JTextField jTextField16;
    private javax.swing.JTextField jTextField17;
    private javax.swing.JTextField jTextField24;
    private javax.swing.JTextField jTextField25;
    private javax.swing.JTextField jTextField26;
    private javax.swing.JTextField jTextField27;
    private javax.swing.JTextField jTextField28;
    private javax.swing.JTextField jTextField29;
    private javax.swing.JTextField jTextField6;
    private javax.swing.JTextField jTextField7;
    private javax.swing.JTextField jTextField8;
    private javax.swing.JTextField jTextField9;
    private javax.swing.JTextField minutos;
    private javax.swing.JTextArea observa;
    private javax.swing.JTextField textEscalera;
    private javax.swing.JTextField textManila;
    private javax.swing.JTextField textMaquina;
    private javax.swing.JTextField textOtro;
    private javax.swing.JTextField textTramos;
    private javax.swing.JTextField txtGalones;
    // End of variables declaration//GEN-END:variables
}
